Fix a simple error in renumbering kill markaers, that took an inordinant amount of...
authorOwen Anderson <resistor@mac.com>
Tue, 30 Sep 2008 22:51:54 +0000 (22:51 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 30 Sep 2008 22:51:54 +0000 (22:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56889 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveIntervalAnalysis.cpp

index 4ed456bf11ab07c611956661a857034212e72210..c95279ebf26b639783b13ac6bfa610cacb120af9 100644 (file)
@@ -213,7 +213,7 @@ void LiveIntervals::computeNumbering() {
           
           unsigned index = (vni->kills[i]-1) / InstrSlots::NUM;
           unsigned offset = vni->kills[i] % InstrSlots::NUM;
-          if (offset == InstrSlots::STORE) {
+          if (offset == InstrSlots::LOAD) {
             std::vector<IdxMBBPair>::const_iterator I =
              std::lower_bound(OldI2MBB.begin(), OldI2MBB.end(), vni->kills[i]);
             --I;