aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
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
commit4365b48630b4cca32f66aacf8aa13a19bb0fefed (patch)
treea022663016d1ceda6d66eb8ea414c8b01206b37c /lib/CodeGen/LiveIntervalAnalysis.cpp
parentd3752039753f39facf193e2d71e2a2de7f7e7e3b (diff)
downloadexternal_llvm-4365b48630b4cca32f66aacf8aa13a19bb0fefed.zip
external_llvm-4365b48630b4cca32f66aacf8aa13a19bb0fefed.tar.gz
external_llvm-4365b48630b4cca32f66aacf8aa13a19bb0fefed.tar.bz2
Fix a simple error in renumbering kill markaers, that took an inordinant amount of time to track down.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56889 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 4ed456b..c95279e 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/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;