[llvm-commits] CVS: llvm/include/llvm/CodeGen/LiveIntervals.h

Alkis Evlogimenos alkis at cs.uiuc.edu
Sun Dec 28 11:59:05 PST 2003

Changes in directory llvm/include/llvm/CodeGen:

LiveIntervals.h updated: 1.7 -> 1.8

Log message:

Add coalescing to register allocator. A hint is added to each interval
which denotes the register we would like to be assigned to (virtual or
physical). In register allocation, if this hint exists and we can map
it to a physical register (it is either a physical register or it is a
virtual register that already got assigned to a physical one) we use
that register if it is available instead of a random one in the free

Diffs of the changes:  (+1 -0)

Index: llvm/include/llvm/CodeGen/LiveIntervals.h
diff -u llvm/include/llvm/CodeGen/LiveIntervals.h:1.7 llvm/include/llvm/CodeGen/LiveIntervals.h:1.8
--- llvm/include/llvm/CodeGen/LiveIntervals.h:1.7	Sun Dec 21 14:19:10 2003
+++ llvm/include/llvm/CodeGen/LiveIntervals.h	Sun Dec 28 11:58:18 2003
@@ -38,6 +38,7 @@
             typedef std::pair<unsigned, unsigned> Range;
             typedef std::vector<Range> Ranges;
             unsigned reg;   // the register of this interval
+            unsigned hint;
             float weight;   // weight of this interval (number of uses
                             // * 10^loopDepth)
             Ranges ranges;  // the ranges this register is valid

More information about the llvm-commits mailing list