Skip to content

Commit a4fb76c

Browse files
actinksdtcxzyw
andauthored
remove isEquality
Co-authored-by: Yingwei Zheng <[email protected]>
1 parent 76ec692 commit a4fb76c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,7 @@ Instruction *InstCombinerImpl::FoldOpIntoSelect(Instruction &Op, SelectInst *SI,
17301730
if (CI->hasOneUse()) {
17311731
Value *Op0 = CI->getOperand(0), *Op1 = CI->getOperand(1);
17321732
if (((TV == Op0 && FV == Op1) || (FV == Op0 && TV == Op1)) &&
1733-
!CI->isEquality() && !CI->isCommutative())
1733+
!CI->isCommutative())
17341734
return nullptr;
17351735
}
17361736
}

0 commit comments

Comments
 (0)