Skip to content

Commit 694e03e

Browse files
committed
[InstCombine] Revert nfc chagnes
1 parent 546ea60 commit 694e03e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,8 +1228,8 @@ static Value *foldSelectCttzCtlz(ICmpInst *ICI, Value *TrueVal, Value *FalseVal,
12281228
// (X == 0) ? BitWidth : ctz(X)
12291229
// (X == -1) ? BitWidth : ctz(~X)
12301230
// (X == Y) ? BitWidth : ctz(X ^ Y)
1231-
if (!(X == CmpLHS && match(CmpRHS, m_Zero())) &&
1232-
!(match(X, m_Not(m_Specific(CmpLHS))) && match(CmpRHS, m_AllOnes())) &&
1231+
if ((X != CmpLHS || !match(CmpRHS, m_Zero())) &&
1232+
(!match(X, m_Not(m_Specific(CmpLHS))) || !match(CmpRHS, m_AllOnes())) &&
12331233
!match(X, m_c_Xor(m_Specific(CmpLHS), m_Specific(CmpRHS))))
12341234
return nullptr;
12351235

0 commit comments

Comments
 (0)