Skip to content

Commit 821f62d

Browse files
bobby-b-songnikic
andcommitted
Update llvm/lib/Analysis/InstructionSimplify.cpp
Co-authored-by: Nikita Popov <[email protected]> Update llvm/lib/Analysis/InstructionSimplify.cpp Co-authored-by: Nikita Popov <[email protected]>
1 parent 8f18ff0 commit 821f62d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Analysis/InstructionSimplify.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2179,9 +2179,9 @@ static Value *simplifyAndInst(Value *Op0, Value *Op1, const SimplifyQuery &Q,
21792179
// (X <= ~Y) && (Y > ~X) --> 0
21802180
CmpPredicate Pred0, Pred1;
21812181
if (match(Op0,
2182-
m_c_ICmp(Pred0, m_Value(X), m_c_Xor(m_Value(Y), m_AllOnes()))) &&
2182+
m_c_ICmp(Pred0, m_Value(X), m_Not(m_Value(Y)))) &&
21832183
match(Op1, m_c_ICmp(Pred1, m_Specific(Y),
2184-
m_c_Xor(m_Specific(X), m_AllOnes())))) {
2184+
m_Not(m_Specific(X))))) {
21852185
if (ICmpInst::isLE(Pred0) && ICmpInst::isGT(Pred1))
21862186
return ConstantInt::getFalse(Op0->getType());
21872187
if (ICmpInst::isLT(Pred0) && ICmpInst::isGE(Pred1))

0 commit comments

Comments
 (0)