Lines Matching defs:CmpRHS
695 Value *CmpRHS = IC->getOperand(1);
696 if (!CmpRHS->getType()->isIntOrIntVectorTy())
700 unsigned Bitwidth = CmpRHS->getType()->getScalarSizeInBits();
702 !match(CmpRHS, m_SpecificInt_ICMP(ICmpInst::ICMP_SGE,
705 !match(CmpRHS, m_SpecificInt_ICMP(ICmpInst::ICMP_SGE,
755 Value *CmpRHS = IC->getOperand(1);
761 if (!match(CmpRHS, m_Zero()))
770 auto Res = decomposeBitTestICmp(CmpLHS, CmpRHS, Pred);
1189 Value *CmpRHS = ICI->getOperand(1);
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
1376 // undefined behavior). Only do this if CmpRHS is a constant, as
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,
1831 if (!match(CmpRHS, m_SpecificInt(C)) || !match(TValRHS, m_SpecificInt(C)))
1846 Value *CmpRHS = ICI->getOperand(1);
1852 foldSelectWithExtremeEqCond(CmpLHS, CmpRHS, TrueVal, FalseVal))
1940 Value *CmpRHS = ICI->getOperand(1);
1949 if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes()) &&
4000 Value *CmpRHS = cast<CmpInst>(CondVal)->getOperand(1);
4004 (CmpRHS != LHS && CmpRHS != RHS)))) {