Changes in directory llvm/lib/VMCore:
ConstantFolding.cpp updated: 1.93.2.6 -> 1.93.2.7 --- Log message: Don't try to replicate integer transforms/folding for floating point values. Its not valid! --- Diffs of the changes: (+0 -5) ConstantFolding.cpp | 5 ----- 1 files changed, 5 deletions(-) Index: llvm/lib/VMCore/ConstantFolding.cpp diff -u llvm/lib/VMCore/ConstantFolding.cpp:1.93.2.6 llvm/lib/VMCore/ConstantFolding.cpp:1.93.2.7 --- llvm/lib/VMCore/ConstantFolding.cpp:1.93.2.6 Sun Oct 22 03:59:01 2006 +++ llvm/lib/VMCore/ConstantFolding.cpp Sun Oct 22 18:27:21 2006 @@ -1396,11 +1396,6 @@ if (CI->getZExtValue() == 1) return const_cast<Constant*>(V1); // X / 1 == X break; - case Instruction::FDiv: - if (const ConstantFP* CFP = dyn_cast<ConstantFP>(V2)) // X / 1.0 == X - if (CFP->getValue() == 1.0) - return const_cast<Constant*>(V1); - break; case Instruction::Rem: if (const ConstantInt *CI = dyn_cast<ConstantInt>(V2)) if (CI->getZExtValue() == 1) _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits