Lines Matching defs:CmpRHS
36 Value *CmpRHS = ICI->getOperand(1);
41 RHS = CmpRHS;
44 if (TrueVal == CmpLHS && FalseVal == CmpRHS) {
59 if (TrueVal == CmpRHS && FalseVal == CmpLHS) {
73 if (ConstantInt *C1 = dyn_cast<ConstantInt>(CmpRHS)) {
406 Value *CmpRHS = IC->getOperand(1);
408 if (!match(CmpRHS, m_Zero()))
474 Value *CmpRHS = ICI->getOperand(1);
482 if (ConstantInt *CI = dyn_cast<ConstantInt>(CmpRHS)) {
517 else if (CmpRHS->getType()->getScalarSizeInBits()
555 CmpRHS = AdjustedRHS;
559 ICI->setOperand(1, CmpRHS);
580 if (ConstantInt *Cmp = dyn_cast<ConstantInt>(CmpRHS)) {
608 if (SimplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, DL, TLI) == TrueVal ||
609 SimplifyWithOpReplaced(FalseVal, CmpRHS, CmpLHS, DL, TLI) == TrueVal)
611 if (SimplifyWithOpReplaced(TrueVal, CmpLHS, CmpRHS, DL, TLI) == FalseVal ||
612 SimplifyWithOpReplaced(TrueVal, CmpRHS, CmpLHS, DL, TLI) == FalseVal)
615 if (SimplifyWithOpReplaced(TrueVal, CmpLHS, CmpRHS, DL, TLI) == FalseVal ||
616 SimplifyWithOpReplaced(TrueVal, CmpRHS, CmpLHS, DL, TLI) == FalseVal)
618 if (SimplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, DL, TLI) == TrueVal ||
619 SimplifyWithOpReplaced(FalseVal, CmpRHS, CmpLHS, DL, TLI) == TrueVal)
625 if (CmpRHS != CmpLHS && isa<Constant>(CmpRHS)) {
628 SI.setOperand(1, CmpRHS);
632 SI.setOperand(2, CmpRHS);