Lines Matching refs:CmpRHS
661 Value *CmpRHS = IC->getOperand(1); in foldSelectICmpLshrAshr() local
662 if (!CmpRHS->getType()->isIntOrIntVectorTy()) in foldSelectICmpLshrAshr()
666 unsigned Bitwidth = CmpRHS->getType()->getScalarSizeInBits(); in foldSelectICmpLshrAshr()
668 !match(CmpRHS, in foldSelectICmpLshrAshr()
671 !match(CmpRHS, in foldSelectICmpLshrAshr()
721 Value *CmpRHS = IC->getOperand(1); in foldSelectICmpAndBinOp() local
727 if (!match(CmpRHS, m_Zero())) in foldSelectICmpAndBinOp()
737 if (!decomposeBitTestICmp(CmpLHS, CmpRHS, Pred, CmpLHS, C1) || in foldSelectICmpAndBinOp()
1122 Value *CmpRHS = ICI->getOperand(1); in foldSelectCttzCtlz() local
1148 if ((X != CmpLHS || !match(CmpRHS, m_Zero())) && in foldSelectCttzCtlz()
1149 (!match(X, m_Not(m_Specific(CmpLHS))) || !match(CmpRHS, m_AllOnes()))) in foldSelectCttzCtlz()
1282 Value *CmpLHS = Cmp.getOperand(0), *CmpRHS = Cmp.getOperand(1); in foldSelectValueEquivalence() local
1284 isGuaranteedNotToBeUndefOrPoison(CmpRHS, SQ.AC, &Sel, &DT)) { in foldSelectValueEquivalence()
1285 if (Value *V = simplifyWithOpReplaced(TrueVal, CmpLHS, CmpRHS, SQ, in foldSelectValueEquivalence()
1290 if (isa<Constant>(CmpRHS) || isa<Constant>(V)) in foldSelectValueEquivalence()
1300 if (match(CmpRHS, m_ImmConstant()) && !match(CmpLHS, m_ImmConstant()) && in foldSelectValueEquivalence()
1302 if (replaceInInstruction(TrueVal, CmpLHS, CmpRHS)) in foldSelectValueEquivalence()
1305 if (TrueVal != CmpRHS && in foldSelectValueEquivalence()
1307 if (Value *V = simplifyWithOpReplaced(TrueVal, CmpRHS, CmpLHS, SQ, in foldSelectValueEquivalence()
1325 if (simplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, SQ, in foldSelectValueEquivalence()
1328 simplifyWithOpReplaced(FalseVal, CmpRHS, CmpLHS, SQ, in foldSelectValueEquivalence()
1708 Value *CmpRHS = ICI->getOperand(1); in foldSelectInstWithICmp() local
1709 if (CmpRHS != CmpLHS && isa<Constant>(CmpRHS) && !isa<Constant>(CmpLHS)) { in foldSelectInstWithICmp()
1712 replaceOperand(SI, 1, CmpRHS); in foldSelectInstWithICmp()
1716 replaceOperand(SI, 2, CmpRHS); in foldSelectInstWithICmp()
1725 if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes()) && in foldSelectInstWithICmp()
1749 match(CmpRHS, m_Zero())) { in foldSelectInstWithICmp()
1752 } else if (Pred == ICmpInst::ICMP_SLT && match(CmpRHS, m_Zero())) { in foldSelectInstWithICmp()
1757 } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) { in foldSelectInstWithICmp()
3595 Value *CmpRHS = cast<CmpInst>(CondVal)->getOperand(1); in visitSelectInst() local
3599 (CmpRHS != LHS && CmpRHS != RHS)))) { in visitSelectInst()