From 340a05fb3a7ab403ea6668f46bba2f2f69c6d6e3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 8 Oct 2004 19:15:44 +0000 Subject: [PATCH] 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 --- lib/Transforms/Scalar/InstructionCombining.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 1e4baf7db37..5b477b3a409 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(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) { -- 2.34.1