diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-04-11 17:55:47 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-04-11 17:55:47 +0000 |
commit | 1fbf9c23e1b8ed61498bb1538ede7c767d809217 (patch) | |
tree | 65c3fb471c600fc27ff58fabd2fcc535566e3d63 /lib | |
parent | 59d4300a7d29bfd41729354184ad8df8383dfcba (diff) | |
download | external_llvm-1fbf9c23e1b8ed61498bb1538ede7c767d809217.zip external_llvm-1fbf9c23e1b8ed61498bb1538ede7c767d809217.tar.gz external_llvm-1fbf9c23e1b8ed61498bb1538ede7c767d809217.tar.bz2 |
Do not add empty live intervals to handled_. They should never be undone for backtracking.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49544 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/RegAllocLinearScan.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp index 19c7da1..456ee63 100644 --- a/lib/CodeGen/RegAllocLinearScan.cpp +++ b/lib/CodeGen/RegAllocLinearScan.cpp @@ -519,7 +519,6 @@ void RALinScan::assignRegOrStackSlotAtInterval(LiveInterval* cur) DOUT << tri_->getName(physReg) << '\n'; // Note the register is not really in use. vrm_->assignVirt2Phys(cur->reg, physReg); - handled_.push_back(cur); return; } @@ -539,7 +538,7 @@ void RALinScan::assignRegOrStackSlotAtInterval(LiveInterval* cur) if (vni->def && vni->def != ~1U && vni->def != ~0U) { MachineInstr *CopyMI = li_->getInstructionFromIndex(vni->def); unsigned SrcReg, DstReg; - if (tii_->isMoveInstr(*CopyMI, SrcReg, DstReg)) { + if (CopyMI && tii_->isMoveInstr(*CopyMI, SrcReg, DstReg)) { unsigned Reg = 0; if (TargetRegisterInfo::isPhysicalRegister(SrcReg)) Reg = SrcReg; |