Lines Matching refs:CmpLHS
676 Value *CmpLHS = IC->getOperand(0); in foldSelectICmpLshrAshr() local
697 match(CmpLHS, m_Specific(X))) { in foldSelectICmpLshrAshr()
736 Value *CmpLHS = IC->getOperand(0); in foldSelectICmpAndBinOp() local
747 if (!match(CmpLHS, m_And(m_Value(), m_Power2(C1)))) in foldSelectICmpAndBinOp()
753 if (!decomposeBitTestICmp(CmpLHS, CmpRHS, Pred, CmpLHS, C1) || in foldSelectICmpAndBinOp()
761 Value *Y, *V = CmpLHS; in foldSelectICmpAndBinOp()
1137 Value *CmpLHS = ICI->getOperand(0); in foldSelectCttzCtlz() local
1164 if ((X != CmpLHS || !match(CmpRHS, m_Zero())) && in foldSelectCttzCtlz()
1165 (!match(X, m_Not(m_Specific(CmpLHS))) || !match(CmpRHS, m_AllOnes()))) in foldSelectCttzCtlz()
1299 Value *CmpLHS = Cmp.getOperand(0), *CmpRHS = Cmp.getOperand(1); in foldSelectValueEquivalence() local
1336 if (OldOp == CmpLHS && match(NewOp, m_ImmConstant()) && in foldSelectValueEquivalence()
1344 if (Instruction *R = ReplaceOldOpWithNewOp(CmpLHS, CmpRHS)) in foldSelectValueEquivalence()
1346 if (Instruction *R = ReplaceOldOpWithNewOp(CmpRHS, CmpLHS)) in foldSelectValueEquivalence()
1362 if (simplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, SQ, in foldSelectValueEquivalence()
1365 simplifyWithOpReplaced(FalseVal, CmpRHS, CmpLHS, SQ, in foldSelectValueEquivalence()
1725 Value *CmpLHS = ICI->getOperand(0); in foldSelectICmpEq() local
1737 if (!match(CmpLHS, m_BitwiseLogic(m_Value(X), m_Value(Y))) || in foldSelectICmpEq()
1765 if (match(CmpLHS, m_And(m_Value(X), m_Value(Y)))) { in foldSelectICmpEq()
1783 if (match(CmpLHS, m_Or(m_Value(X), m_Value(Y)))) { in foldSelectICmpEq()
1801 if (match(CmpLHS, m_Xor(m_Value(X), m_Value(Y)))) { in foldSelectICmpEq()
1848 Value *CmpLHS = ICI->getOperand(0); in foldSelectInstWithICmp() local
1850 if (CmpRHS != CmpLHS && isa<Constant>(CmpRHS) && !isa<Constant>(CmpLHS)) { in foldSelectInstWithICmp()
1851 if (CmpLHS == TrueVal && Pred == ICmpInst::ICMP_EQ) { in foldSelectInstWithICmp()
1855 } else if (CmpLHS == FalseVal && Pred == ICmpInst::ICMP_NE) { in foldSelectInstWithICmp()
1874 Value *IsNeg = Builder.CreateIsNeg(CmpLHS, ICI->getName()); in foldSelectInstWithICmp()
1892 match(CmpLHS, m_And(m_Value(X), m_Power2(Y))) && in foldSelectInstWithICmp()
1897 X = CmpLHS; in foldSelectInstWithICmp()
1902 X = CmpLHS; in foldSelectInstWithICmp()
3814 Value *CmpLHS = cast<CmpInst>(CondVal)->getOperand(0); in visitSelectInst() local
3818 ((CmpLHS != LHS && CmpLHS != RHS) || in visitSelectInst()