[llvm-commits] CVS: llvm/include/llvm/CodeGen/LiveIntervals.h
Alkis Evlogimenos
alkis at niobe.cs.uiuc.edu
Sat Feb 21 22:06:01 PST 2004
Changes in directory llvm/include/llvm/CodeGen:
LiveIntervals.h updated: 1.20 -> 1.21
---
Log message:
Abstract merging of ranges away from number of slots per instruction.
Also make it less aggressive as the current implementation breaks in
some cases.
---
Diffs of the changes: (+4 -1)
Index: llvm/include/llvm/CodeGen/LiveIntervals.h
diff -u llvm/include/llvm/CodeGen/LiveIntervals.h:1.20 llvm/include/llvm/CodeGen/LiveIntervals.h:1.21
--- llvm/include/llvm/CodeGen/LiveIntervals.h:1.20 Fri Feb 20 00:15:40 2004
+++ llvm/include/llvm/CodeGen/LiveIntervals.h Sat Feb 21 22:05:13 2004
@@ -126,7 +126,10 @@
};
static unsigned getBaseIndex(unsigned index) {
- return index - (index % 4);
+ return index - (index % InstrSlots::NUM);
+ }
+ static unsigned getBoundaryIndex(unsigned index) {
+ return getBaseIndex(index + InstrSlots::NUM - 1);
}
static unsigned getLoadIndex(unsigned index) {
return getBaseIndex(index) + InstrSlots::LOAD;
More information about the llvm-commits
mailing list