projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ced638
)
Temporarily disable a buggy transformation until it can be fixed. This fixes
author
Chris Lattner
<sabre@nondot.org>
Fri, 8 Oct 2004 19:15:44 +0000
(19:15 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 8 Oct 2004 19:15:44 +0000
(19:15 +0000)
254.gap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16853
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index 1e4baf7db376937133782f14ce0b71a41e87370a..5b477b3a409753f54477002f81fa830c95f16527 100644
(file)
--- 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) {