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 | 0b41e861b6f948e4898d28c9349c0519d6344a52 (patch) | |
| tree | e017b3de8b534e46a306e1f69ce1984a5317f335 /llvm/lib/Transforms | |
| parent | e4e1360eab0065c36daf82a3996d170eef6c7b15 (diff) | |
| download | bcm5719-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.cpp | 5 |
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) { |

