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:
183661e
)
fix a bug spotted by Eli's eagle eyes
author
Chris Lattner
<sabre@nondot.org>
Fri, 11 Jul 2008 06:36:01 +0000
(06:36 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 11 Jul 2008 06:36:01 +0000
(06:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53447
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 302dc6b53a9dc2e55dec6a75d00127028dd01e07..0cb96d52b8005ec36f1e090d1f89347f0c910f88 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-5340,8
+5340,8
@@
Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
return ReplaceInstUsesWith(I, ConstantInt::getFalse());
if (RHSVal == Max) // A <s MAX -> A != MAX
return new ICmpInst(ICmpInst::ICMP_NE, Op0, Op1);
- if (RHSVal == Min
-
1) // A <s MIN+1 -> A == MIN
- return new ICmpInst(ICmpInst::ICMP_
NE
, Op0, Op1);
+ if (RHSVal == Min
+
1) // A <s MIN+1 -> A == MIN
+ return new ICmpInst(ICmpInst::ICMP_
EQ
, Op0, Op1);
break;
case ICmpInst::ICMP_SGT:
if (Min.sgt(RHSVal)) // A >s C -> true iff min(A) > C