Lines Matching refs:CmpRHS
374 Value *CmpRHS = IC->getOperand(1); in foldSelectICmpAndOr() local
376 if (!match(CmpRHS, m_Zero())) in foldSelectICmpAndOr()
423 Value *CmpRHS = ICI->getOperand(1); in visitSelectInstWithICmp() local
431 if (ConstantInt *CI = dyn_cast<ConstantInt>(CmpRHS)) { in visitSelectInstWithICmp()
466 else if (CmpRHS->getType()->getScalarSizeInBits() in visitSelectInstWithICmp()
504 CmpRHS = AdjustedRHS; in visitSelectInstWithICmp()
508 ICI->setOperand(1, CmpRHS); in visitSelectInstWithICmp()
529 if (ConstantInt *Cmp = dyn_cast<ConstantInt>(CmpRHS)) { in visitSelectInstWithICmp()
557 if (SimplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, TD, TLI) == TrueVal || in visitSelectInstWithICmp()
558 SimplifyWithOpReplaced(FalseVal, CmpRHS, CmpLHS, TD, TLI) == TrueVal) in visitSelectInstWithICmp()
560 if (SimplifyWithOpReplaced(TrueVal, CmpLHS, CmpRHS, TD, TLI) == FalseVal || in visitSelectInstWithICmp()
561 SimplifyWithOpReplaced(TrueVal, CmpRHS, CmpLHS, TD, TLI) == FalseVal) in visitSelectInstWithICmp()
564 if (SimplifyWithOpReplaced(TrueVal, CmpLHS, CmpRHS, TD, TLI) == FalseVal || in visitSelectInstWithICmp()
565 SimplifyWithOpReplaced(TrueVal, CmpRHS, CmpLHS, TD, TLI) == FalseVal) in visitSelectInstWithICmp()
567 if (SimplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, TD, TLI) == TrueVal || in visitSelectInstWithICmp()
568 SimplifyWithOpReplaced(FalseVal, CmpRHS, CmpLHS, TD, TLI) == TrueVal) in visitSelectInstWithICmp()
574 if (CmpRHS != CmpLHS && isa<Constant>(CmpRHS)) { in visitSelectInstWithICmp()
577 SI.setOperand(1, CmpRHS); in visitSelectInstWithICmp()
581 SI.setOperand(2, CmpRHS); in visitSelectInstWithICmp()