[llvm-commits] CVS: llvm/lib/VMCore/ConstantFold.cpp
Reid Spencer
reid at x10sys.com
Tue Feb 27 15:33:20 PST 2007
Changes in directory llvm/lib/VMCore:
ConstantFold.cpp updated: 1.142 -> 1.143
---
Log message:
Pull out the stops.
---
Diffs of the changes: (+2 -4)
ConstantFold.cpp | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
Index: llvm/lib/VMCore/ConstantFold.cpp
diff -u llvm/lib/VMCore/ConstantFold.cpp:1.142 llvm/lib/VMCore/ConstantFold.cpp:1.143
--- llvm/lib/VMCore/ConstantFold.cpp:1.142 Tue Feb 27 14:25:25 2007
+++ llvm/lib/VMCore/ConstantFold.cpp Tue Feb 27 17:33:03 2007
@@ -198,13 +198,11 @@
return 0; // Other pointer types cannot be casted
case Instruction::UIToFP:
if (const ConstantInt *CI = dyn_cast<ConstantInt>(V))
- if (CI->getType()->getBitWidth() <= 64)
- return ConstantFP::get(DestTy, CI->getValue().roundToDouble());
+ return ConstantFP::get(DestTy, CI->getValue().roundToDouble());
return 0;
case Instruction::SIToFP:
if (const ConstantInt *CI = dyn_cast<ConstantInt>(V))
- if (CI->getType()->getBitWidth() <= 64)
- return ConstantFP::get(DestTy, CI->getValue().signedRoundToDouble());
+ return ConstantFP::get(DestTy, CI->getValue().signedRoundToDouble());
return 0;
case Instruction::ZExt:
if (const ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
More information about the llvm-commits
mailing list