[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervals.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Mon Feb 16 22:05:01 PST 2004
Changes in directory llvm/lib/CodeGen:
LiveIntervals.cpp updated: 1.51 -> 1.52
---
Log message:
Fix spilled interval update. It was too conservative.
---
Diffs of the changes: (+4 -1)
Index: llvm/lib/CodeGen/LiveIntervals.cpp
diff -u llvm/lib/CodeGen/LiveIntervals.cpp:1.51 llvm/lib/CodeGen/LiveIntervals.cpp:1.52
--- llvm/lib/CodeGen/LiveIntervals.cpp:1.51 Sun Feb 15 04:24:21 2004
+++ llvm/lib/CodeGen/LiveIntervals.cpp Mon Feb 16 22:04:20 2004
@@ -191,7 +191,10 @@
if (mop.isRegister()) {
unsigned reg = mop.getReg();
if (rep(reg) == li.reg) {
- li.addRange(index, index + 2);
+ if (mop.isUse())
+ li.addRange(index, index+2);
+ else
+ li.addRange(index+1, index+2);
}
}
}
More information about the llvm-commits
mailing list