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

Chris Lattner lattner at cs.uiuc.edu
Sat Jan 8 11:54:05 PST 2005



Changes in directory llvm/lib/CodeGen:

RegAllocLinearScan.cpp updated: 1.105 -> 1.106
RegAllocIterativeScan.cpp updated: 1.19 -> 1.20
---
Log message:

Silence VS warnings


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

Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff -u llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.105 llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.106
--- llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.105	Wed Dec 15 01:04:17 2004
+++ llvm/lib/CodeGen/RegAllocLinearScan.cpp	Sat Jan  8 13:53:50 2005
@@ -423,7 +423,7 @@
 
   DEBUG(std::cerr << "\tassigning stack slot at interval "<< *cur << ":\n");
 
-  float minWeight = HUGE_VAL;
+  float minWeight = float(HUGE_VAL);
   unsigned minReg = 0;
   const TargetRegisterClass* rc = mf_->getSSARegMap()->getRegClass(cur->reg);
   for (TargetRegisterClass::iterator i = rc->allocation_order_begin(*mf_),


Index: llvm/lib/CodeGen/RegAllocIterativeScan.cpp
diff -u llvm/lib/CodeGen/RegAllocIterativeScan.cpp:1.19 llvm/lib/CodeGen/RegAllocIterativeScan.cpp:1.20
--- llvm/lib/CodeGen/RegAllocIterativeScan.cpp:1.19	Wed Dec 15 01:04:32 2004
+++ llvm/lib/CodeGen/RegAllocIterativeScan.cpp	Sat Jan  8 13:53:50 2005
@@ -394,7 +394,7 @@
 
   DEBUG(std::cerr << "\tassigning stack slot at interval "<< *cur << ":\n");
 
-  float minWeight = HUGE_VAL;
+  float minWeight = (float)HUGE_VAL;
   unsigned minReg = 0;
   const TargetRegisterClass* rc = mf_->getSSARegMap()->getRegClass(cur->reg);
   for (TargetRegisterClass::iterator i = rc->allocation_order_begin(*mf_),






More information about the llvm-commits mailing list