Lines Matching defs:CmpLHS
694 Value *CmpLHS = IC->getOperand(0);
715 match(CmpLHS, m_Specific(X))) {
754 Value *CmpLHS = IC->getOperand(0);
765 if (!match(CmpLHS, m_And(m_Value(), m_Power2(C1))))
770 auto Res = decomposeBitTestICmp(CmpLHS, CmpRHS, Pred);
774 CmpLHS = Res->X;
780 Value *Y, *V = CmpLHS;
1188 Value *CmpLHS = ICI->getOperand(0);
1215 if ((X != CmpLHS || !match(CmpRHS, m_Zero())) &&
1216 (!match(X, m_Not(m_Specific(CmpLHS))) || !match(CmpRHS, m_AllOnes())))
1342 Value *CmpLHS = Cmp.getOperand(0), *CmpRHS = Cmp.getOperand(1);
1373 // CmpLHS with CmpRHS, as long as the instruction is not used anywhere
1378 if (OldOp == CmpLHS && match(NewOp, m_ImmConstant()) &&
1386 if (Instruction *R = ReplaceOldOpWithNewOp(CmpLHS, CmpRHS))
1388 if (Instruction *R = ReplaceOldOpWithNewOp(CmpRHS, CmpLHS))
1404 if (simplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, SQ,
1407 simplifyWithOpReplaced(FalseVal, CmpRHS, CmpLHS, SQ,
1799 static Instruction *foldSelectWithExtremeEqCond(Value *CmpLHS, Value *CmpRHS,
1802 Type *Ty = CmpLHS->getType();
1810 if (!match(FalseVal, m_c_ICmp(Pred, m_Specific(CmpLHS), m_Value(B))))
1834 return new ICmpInst(Pred, CmpLHS, B);
1845 Value *CmpLHS = ICI->getOperand(0);
1852 foldSelectWithExtremeEqCond(CmpLHS, CmpRHS, TrueVal, FalseVal))
1939 Value *CmpLHS = ICI->getOperand(0);
1946 // (CmpLHS > -1) ? TV : FV --> (CmpLHS < 0) ? FV : TV
1954 Value *IsNeg = Builder.CreateIsNeg(CmpLHS, ICI->getName());
3999 Value *CmpLHS = cast<CmpInst>(CondVal)->getOperand(0);
4003 ((CmpLHS != LHS && CmpLHS != RHS) ||