[llvm-commits] CVS: llvm/include/llvm/CodeGen/LiveIntervals.h
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sun Dec 21 14:20:12 PST 2003
Changes in directory llvm/include/llvm/CodeGen:
LiveIntervals.h updated: 1.6 -> 1.7
---
Log message:
Change weight into a float so that we can take into account the
nesting level when computing it. Right now the allocator uses:
w = sum_over_defs_uses( 10 ^ nesting level );
---
Diffs of the changes: (+3 -2)
Index: llvm/include/llvm/CodeGen/LiveIntervals.h
diff -u llvm/include/llvm/CodeGen/LiveIntervals.h:1.6 llvm/include/llvm/CodeGen/LiveIntervals.h:1.7
--- llvm/include/llvm/CodeGen/LiveIntervals.h:1.6 Sat Dec 20 23:43:40 2003
+++ llvm/include/llvm/CodeGen/LiveIntervals.h Sun Dec 21 14:19:10 2003
@@ -38,8 +38,9 @@
typedef std::pair<unsigned, unsigned> Range;
typedef std::vector<Range> Ranges;
unsigned reg; // the register of this interval
- unsigned weight; // weight of this interval (number of uses)
- Ranges ranges; // the ranges this register is valid
+ float weight; // weight of this interval (number of uses
+ // * 10^loopDepth)
+ Ranges ranges; // the ranges this register is valid
Interval(unsigned r);
More information about the llvm-commits
mailing list