diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-02 05:52:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-02 05:52:23 +0000 |
commit | a65b4eac3bd0990307ccaa9b013559fb11d60738 (patch) | |
tree | ad9781429047d764dd2ed8161e4a4e1db0629e4d /llvm/lib/CodeGen/LiveIntervals.cpp | |
parent | 55256dbf9bc4b328831b70a191a4c18514ca24eb (diff) | |
download | bcm5719-llvm-a65b4eac3bd0990307ccaa9b013559fb11d60738.tar.gz bcm5719-llvm-a65b4eac3bd0990307ccaa9b013559fb11d60738.zip |
Revert patches 1.79 and 1.80 which had to do with dead MBB's. Now that they
don't exist, we don't have to pretend to handle them.
llvm-svn: 14567
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervals.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervals.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervals.cpp b/llvm/lib/CodeGen/LiveIntervals.cpp index f687675c722..9c108056445 100644 --- a/llvm/lib/CodeGen/LiveIntervals.cpp +++ b/llvm/lib/CodeGen/LiveIntervals.cpp @@ -356,7 +356,8 @@ void LiveIntervals::handlePhysicalRegisterDef(MachineBasicBlock* mbb, } // a variable can only be killed by subsequent instructions - for (++mi; mi != e; ++mi) { + do { + ++mi; baseIndex += InstrSlots::NUM; for (KillIter ki = lv_->killed_begin(mi), ke = lv_->killed_end(mi); ki != ke; ++ki) { @@ -366,13 +367,10 @@ void LiveIntervals::handlePhysicalRegisterDef(MachineBasicBlock* mbb, goto exit; } } - } + } while (mi != e); - // LiveVariables does not compute information for dead basic blocks. - DEBUG(std::cerr << "Didn't find the end of the interval. Must be in a " - "dead block."); - end = getDefIndex(start)+1; exit: + assert(start < end && "did not find end of interval?"); interval.addRange(start, end); DEBUG(std::cerr << '\n'); } |