diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-09-02 18:18:29 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-09-02 18:18:29 +0000 |
commit | 8040e064346cc3b78dece7d8ac50593a1c834c46 (patch) | |
tree | d229f2afba71ed0e22165078ea7bbff2f4019a6d | |
parent | d199aa012bb7d05d55daa3b2d3fbeb421728706e (diff) | |
download | external_llvm-8040e064346cc3b78dece7d8ac50593a1c834c46.zip external_llvm-8040e064346cc3b78dece7d8ac50593a1c834c46.tar.gz external_llvm-8040e064346cc3b78dece7d8ac50593a1c834c46.tar.bz2 |
Simplify by using isFullCopy().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139019 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/RegisterCoalescer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/RegisterCoalescer.cpp b/lib/CodeGen/RegisterCoalescer.cpp index c07970d..62d6306 100644 --- a/lib/CodeGen/RegisterCoalescer.cpp +++ b/lib/CodeGen/RegisterCoalescer.cpp @@ -948,9 +948,7 @@ RegisterCoalescer::UpdateRegDefsUses(const CoalescerPair &CP) { // A PhysReg copy that won't be coalesced can perhaps be rematerialized // instead. if (DstIsPhys) { - if (UseMI->isCopy() && - !UseMI->getOperand(1).getSubReg() && - !UseMI->getOperand(0).getSubReg() && + if (UseMI->isFullCopy() && UseMI->getOperand(1).getReg() == SrcReg && UseMI->getOperand(0).getReg() != SrcReg && UseMI->getOperand(0).getReg() != DstReg && |