[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Jeff Cohen
jeffc at jolt-lang.org
Mon Apr 9 07:33:16 PDT 2007
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGISel.cpp updated: 1.410 -> 1.411
---
Log message:
Unbreak VC++ build.
---
Diffs of the changes: (+3 -2)
SelectionDAGISel.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.410 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.411
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.410 Mon Apr 9 07:31:58 2007
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Mon Apr 9 09:32:59 2007
@@ -45,6 +45,7 @@
#include "llvm/Support/Debug.h"
#include "llvm/Support/Compiler.h"
#include <algorithm>
+#include <math.h>
using namespace llvm;
#ifndef NDEBUG
@@ -1603,7 +1604,7 @@
assert((RBegin-LEnd>=1) && "Invalid case distance");
double LDensity = (double)LSize / (double)((LEnd - First) + 1ULL);
double RDensity = (double)RSize / (double)((Last - RBegin) + 1ULL);
- double Metric = log(RBegin-LEnd)*(LDensity+RDensity);
+ double Metric = log(double(RBegin-LEnd))*(LDensity+RDensity);
// Should always split in some non-trivial place
DOUT <<"=>Step\n"
<< "LEnd: " << LEnd << ", RBegin: " << RBegin << "\n"
@@ -1783,7 +1784,7 @@
}
SelectionDAGISel::BitTestBlock BTB(lowBound, range, SV,
- -1ULL, (CR.CaseBB == CurMBB),
+ -1U, (CR.CaseBB == CurMBB),
CR.CaseBB, Default, BTC);
if (CR.CaseBB == CurMBB)
More information about the llvm-commits
mailing list