diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-08 19:15:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-08 19:15:44 +0000 |
commit | 340a05fb3a7ab403ea6668f46bba2f2f69c6d6e3 (patch) | |
tree | 40e3e9a41d6681f723292b96752ef15999c1bc41 /lib | |
parent | 7ced638072bd737581be7b1b19f7115e66ab6f84 (diff) | |
download | external_llvm-340a05fb3a7ab403ea6668f46bba2f2f69c6d6e3.zip external_llvm-340a05fb3a7ab403ea6668f46bba2f2f69c6d6e3.tar.gz external_llvm-340a05fb3a7ab403ea6668f46bba2f2f69c6d6e3.tar.bz2 |
Temporarily disable a buggy transformation until it can be fixed. This fixes
254.gap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 1e4baf7..5b477b3 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/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) { |