Changes in directory llvm/lib/VMCore:
ConstantFolding.cpp updated: 1.137 -> 1.138 --- Log message: Fix Transforms/ConstProp/2007-02-23-sdiv.ll and PR1215: http://llvm.org/PR1215 --- Diffs of the changes: (+2 -1) ConstantFolding.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) Index: llvm/lib/VMCore/ConstantFolding.cpp diff -u llvm/lib/VMCore/ConstantFolding.cpp:1.137 llvm/lib/VMCore/ConstantFolding.cpp:1.138 --- llvm/lib/VMCore/ConstantFolding.cpp:1.137 Wed Feb 14 21:39:18 2007 +++ llvm/lib/VMCore/ConstantFolding.cpp Fri Feb 23 19:19:50 2007 @@ -574,7 +574,8 @@ if (CI2->isAllOnesValue() && (((CI1->getType()->getPrimitiveSizeInBits() == 64) && (CI1->getSExtValue() == INT64_MIN)) || - (CI1->getSExtValue() == -CI1->getSExtValue()))) + (CI1->getSExtValue() == -CI1->getSExtValue() && + CI1->getSExtValue()))) return 0; // MIN_INT / -1 -> overflow return ConstantInt::get(C1->getType(), CI1->getSExtValue() / CI2->getSExtValue()); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits