File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
llvm/lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -3651,7 +3651,6 @@ Instruction *InstCombinerImpl::visitOr(BinaryOperator &I) {
3651
3651
m_Select (m_Value (Cond0), m_APInt (Op0Eq), m_APInt (Op0Ne))) &&
3652
3652
match (I.getOperand (1 ),
3653
3653
m_Select (m_Value (Cond1), m_APInt (Op1Eq), m_APInt (Op1Ne)))) {
3654
- CmpPredicate Pred0, Pred1;
3655
3654
3656
3655
auto LHSDecompose =
3657
3656
decomposeBitTest (Cond0, /* LookThruTrunc=*/ true ,
@@ -3661,9 +3660,9 @@ Instruction *InstCombinerImpl::visitOr(BinaryOperator &I) {
3661
3660
/* AllowNonZeroC=*/ false , /* DecomposeAnd=*/ true );
3662
3661
3663
3662
if (LHSDecompose && RHSDecompose && LHSDecompose->X == RHSDecompose->X &&
3664
- (ICmpInst::isEquality (LHSDecompose->Pred )) &&
3665
3663
RHSDecompose->Mask .isPowerOf2 () && LHSDecompose->Mask .isPowerOf2 () &&
3666
3664
LHSDecompose->Mask != RHSDecompose->Mask ) {
3665
+ assert (ICmpInst::isEquality (LHSDecompose->Pred ));
3667
3666
if (LHSDecompose->Pred == ICmpInst::ICMP_NE)
3668
3667
std::swap (Op0Eq, Op0Ne);
3669
3668
if (RHSDecompose->Pred == ICmpInst::ICMP_NE)
You can’t perform that action at this time.
0 commit comments