diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-06 21:13:03 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-06 21:13:03 +0000 |
| commit | daa41b4ed9f6828f017691815f79447de913e4eb (patch) | |
| tree | c657e1601818f84a710086f386b396c96e248a26 /lib/CodeGen/SimpleRegisterCoalescing.cpp | |
| parent | 0f56d70fbada297f4511faf9c0776de444a06d27 (diff) | |
| download | external_llvm-daa41b4ed9f6828f017691815f79447de913e4eb.zip external_llvm-daa41b4ed9f6828f017691815f79447de913e4eb.tar.gz external_llvm-daa41b4ed9f6828f017691815f79447de913e4eb.tar.bz2 | |
One more case assuming that subregs have live ranges.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107700 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SimpleRegisterCoalescing.cpp')
| -rw-r--r-- | lib/CodeGen/SimpleRegisterCoalescing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp index c450136..e0b9f0c 100644 --- a/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/lib/CodeGen/SimpleRegisterCoalescing.cpp @@ -499,8 +499,8 @@ bool SimpleRegisterCoalescing::RemoveCopyByCommutingDef(const CoalescerPair &CP, if (BHasSubRegs) { for (const unsigned *SR = tri_->getSubRegisters(IntB.reg); *SR; ++SR) { LiveInterval &SRLI = li_->getInterval(*SR); - const LiveRange *SRLR = SRLI.getLiveRangeContaining(DeadVNI->def); - SRLI.removeValNo(SRLR->valno); + if (const LiveRange *SRLR = SRLI.getLiveRangeContaining(DeadVNI->def)) + SRLI.removeValNo(SRLR->valno); } } IntB.removeValNo(BDeadValNos[i]); |
