[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervals.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sat Dec 13 05:12:01 PST 2003
Changes in directory llvm/lib/CodeGen:
LiveIntervals.cpp updated: 1.5 -> 1.6
---
Log message:
Ignore non-allocatable physical registers in live interval analysis.
---
Diffs of the changes: (+4 -0)
Index: llvm/lib/CodeGen/LiveIntervals.cpp
diff -u llvm/lib/CodeGen/LiveIntervals.cpp:1.5 llvm/lib/CodeGen/LiveIntervals.cpp:1.6
--- llvm/lib/CodeGen/LiveIntervals.cpp:1.5 Fri Dec 12 23:26:39 2003
+++ llvm/lib/CodeGen/LiveIntervals.cpp Sat Dec 13 05:11:01 2003
@@ -183,6 +183,10 @@
unsigned reg)
{
DEBUG(std::cerr << "\t\t\tregister: ";printRegName(reg); std::cerr << '\n');
+ if (!lv_->getAllocatablePhysicalRegisters()[reg]) {
+ DEBUG(std::cerr << "\t\t\t\tnon allocatable register: ignoring\n");
+ return;
+ }
unsigned start = getInstructionIndex(*mi);
unsigned end = start;
More information about the llvm-commits
mailing list