Change weight into a float so that we can take into account the
[oota-llvm.git] / lib / CodeGen / LiveIntervalAnalysis.h
index 7ef2e78ea64e6386fa823d9178b06f5fce4b015b..cecfbbadbdfb98c832757f565df632cbcedf31e1 100644 (file)
@@ -38,8 +38,9 @@ namespace llvm {
             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);