Lines Matching refs:CmpLHS
660 Value *CmpLHS = IC->getOperand(0); in foldSelectICmpLshrAshr() local
681 match(CmpLHS, m_Specific(X))) { in foldSelectICmpLshrAshr()
720 Value *CmpLHS = IC->getOperand(0); in foldSelectICmpAndBinOp() local
731 if (!match(CmpLHS, m_And(m_Value(), m_Power2(C1)))) in foldSelectICmpAndBinOp()
737 if (!decomposeBitTestICmp(CmpLHS, CmpRHS, Pred, CmpLHS, C1) || in foldSelectICmpAndBinOp()
745 Value *Y, *V = CmpLHS; in foldSelectICmpAndBinOp()
1121 Value *CmpLHS = ICI->getOperand(0); 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
1283 if (TrueVal != CmpLHS && in foldSelectValueEquivalence()
1285 if (Value *V = simplifyWithOpReplaced(TrueVal, CmpLHS, CmpRHS, SQ, in foldSelectValueEquivalence()
1300 if (match(CmpRHS, m_ImmConstant()) && !match(CmpLHS, m_ImmConstant()) && in foldSelectValueEquivalence()
1302 if (replaceInInstruction(TrueVal, CmpLHS, CmpRHS)) in foldSelectValueEquivalence()
1306 isGuaranteedNotToBeUndefOrPoison(CmpLHS, SQ.AC, &Sel, &DT)) in foldSelectValueEquivalence()
1307 if (Value *V = simplifyWithOpReplaced(TrueVal, CmpRHS, CmpLHS, SQ, in foldSelectValueEquivalence()
1309 if (isa<Constant>(CmpLHS) || isa<Constant>(V)) in foldSelectValueEquivalence()
1325 if (simplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, SQ, in foldSelectValueEquivalence()
1328 simplifyWithOpReplaced(FalseVal, CmpRHS, CmpLHS, SQ, in foldSelectValueEquivalence()
1707 Value *CmpLHS = ICI->getOperand(0); in foldSelectInstWithICmp() local
1709 if (CmpRHS != CmpLHS && isa<Constant>(CmpRHS) && !isa<Constant>(CmpLHS)) { in foldSelectInstWithICmp()
1710 if (CmpLHS == TrueVal && Pred == ICmpInst::ICMP_EQ) { in foldSelectInstWithICmp()
1714 } else if (CmpLHS == FalseVal && Pred == ICmpInst::ICMP_NE) { in foldSelectInstWithICmp()
1730 Value *IsNeg = Builder.CreateIsNeg(CmpLHS, ICI->getName()); in foldSelectInstWithICmp()
1748 match(CmpLHS, m_And(m_Value(X), m_Power2(Y))) && in foldSelectInstWithICmp()
1753 X = CmpLHS; in foldSelectInstWithICmp()
1758 X = CmpLHS; in foldSelectInstWithICmp()
3594 Value *CmpLHS = cast<CmpInst>(CondVal)->getOperand(0); in visitSelectInst() local
3598 ((CmpLHS != LHS && CmpLHS != RHS) || in visitSelectInst()