[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Oct 25 11:41:00 PDT 2004



Changes in directory llvm/lib/CodeGen:

LiveIntervalAnalysis.cpp updated: 1.130 -> 1.131
---
Log message:

Patch to support MSVC better, contributed by Morten Ofstad


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.130 llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.131
--- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.130	Fri Oct  1 18:15:35 2004
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp	Mon Oct 25 13:40:47 2004
@@ -156,7 +156,7 @@
 
             LiveInterval &RegInt = getInterval(reg);
             RegInt.weight +=
-              (mop.isUse() + mop.isDef()) * pow(10.0F, loopDepth);
+              (mop.isUse() + mop.isDef()) * pow(10.0F, (int)loopDepth);
           }
         }
         ++mii;






More information about the llvm-commits mailing list