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:
fdb5b01
)
fix typo
author
Chris Lattner
<sabre@nondot.org>
Sat, 15 Jan 2011 05:42:47 +0000
(
05:42
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 15 Jan 2011 05:42:47 +0000
(
05:42
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123516
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/InstCombine/InstCombineCompares.cpp
b/lib/Transforms/InstCombine/InstCombineCompares.cpp
index 220601611d731914085424c3fdbe61fa24b917c8..471687a24372234183c2473aed793f1b62c3f3e8 100644
(file)
--- a/
lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/
lib/Transforms/InstCombine/InstCombineCompares.cpp
@@
-2290,7
+2290,7
@@
Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
if (match(Op0, m_Not(m_Value(A)))) {
if (match(Op1, m_Not(m_Value(B))))
return new ICmpInst(I.getPredicate(), B, A);
- if (ConstantInt *RHSC = dyn_cast<ConstantInt>(
B
))
+ if (ConstantInt *RHSC = dyn_cast<ConstantInt>(
Op1
))
return new ICmpInst(I.getPredicate(), ConstantExpr::getNot(RHSC), A);
}