summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-09-30 22:51:54 +0000
committerOwen Anderson <resistor@mac.com>2008-09-30 22:51:54 +0000
commitf4a36407c7b825db9202bb0615bc52959ca65db2 (patch)
treeebd2a241133b3e71ab4cd12ad1dbf81ef02b86b3
parent1782584f5635f740cd0dcb8d6c6f9624cf5b5190 (diff)
downloadbcm5719-llvm-f4a36407c7b825db9202bb0615bc52959ca65db2.tar.gz
bcm5719-llvm-f4a36407c7b825db9202bb0615bc52959ca65db2.zip
Fix a simple error in renumbering kill markaers, that took an inordinant amount of time to track down.
llvm-svn: 56889
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 4ed456bf11a..c95279ebf26 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -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;
OpenPOWER on IntegriCloud