Skip to content

Commit 39633af

Browse files
committed
[InstCombine] Simplify matcher in InstCombineAndOrXor (NFC)
1 parent dca49d7 commit 39633af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3655,8 +3655,7 @@ Instruction *InstCombinerImpl::visitOr(BinaryOperator &I) {
36553655

36563656
// (A & B) | (A ^ B) --> A | B
36573657
// (B & A) | (A ^ B) --> A | B
3658-
if (match(Op0, m_And(m_Specific(A), m_Specific(B))) ||
3659-
match(Op0, m_And(m_Specific(B), m_Specific(A))))
3658+
if (match(Op0, m_c_And(m_Specific(A), m_Specific(B))))
36603659
return BinaryOperator::CreateOr(A, B);
36613660

36623661
// ~A | (A ^ B) --> ~(A & B)

0 commit comments

Comments
 (0)