[llvm-commits] [llvm] r56889 - /llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Owen Anderson
resistor at mac.com
Tue Sep 30 15:51:57 PDT 2008
Author: resistor
Date: Tue Sep 30 17:51:54 2008
New Revision: 56889
URL: http://llvm.org/viewvc/llvm-project?rev=56889&view=rev
Log:
Fix a simple error in renumbering kill markaers, that took an inordinant amount of time to track down.
Modified:
llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Modified: llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp?rev=56889&r1=56888&r2=56889&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Tue Sep 30 17:51:54 2008
@@ -213,7 +213,7 @@
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;
More information about the llvm-commits
mailing list