summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-08 19:15:44 +0000
committerChris Lattner <sabre@nondot.org>2004-10-08 19:15:44 +0000
commit0b41e861b6f948e4898d28c9349c0519d6344a52 (patch)
treee017b3de8b534e46a306e1f69ce1984a5317f335 /llvm/lib/Transforms
parente4e1360eab0065c36daf82a3996d170eef6c7b15 (diff)
downloadbcm5719-llvm-0b41e861b6f948e4898d28c9349c0519d6344a52.tar.gz
bcm5719-llvm-0b41e861b6f948e4898d28c9349c0519d6344a52.zip
Temporarily disable a buggy transformation until it can be fixed. This fixes
254.gap. llvm-svn: 16853
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 1e4baf7db37..5b477b3a409 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -2146,6 +2146,11 @@ Instruction *InstCombiner::visitSetCondInst(BinaryOperator &I) {
LoOverflow = HiOverflow = ProdOV;
HiBound = cast<ConstantInt>(ConstantExpr::getSub(Prod, DivRHS));
}
+
+ /// FIXME: This code is disabled, because we do not compile the
+ /// divisor case < 0 correctly. For example, this code is incorrect
+ /// in the case of "X/-10 < 1".
+ LoBound = 0;
}
if (LoBound) {
OpenPOWER on IntegriCloud