Lines Matching refs:CmpRHS
300 Value *CmpRHS = IC->getOperand(1); in foldSelectICmpAndOr() local
302 if (!match(CmpRHS, m_Zero())) in foldSelectICmpAndOr()
357 Value *CmpRHS = ICI->getOperand(1); in foldSelectCttzCtlz() local
360 if (!ICI->isEquality() || !match(CmpRHS, m_Zero())) in foldSelectCttzCtlz()
405 Value *CmpRHS = ICI->getOperand(1); in visitSelectInstWithICmp() local
413 if (ConstantInt *CI = dyn_cast<ConstantInt>(CmpRHS)) { in visitSelectInstWithICmp()
440 else if (CmpRHS->getType()->getScalarSizeInBits() in visitSelectInstWithICmp()
478 CmpRHS = AdjustedRHS; in visitSelectInstWithICmp()
482 ICI->setOperand(1, CmpRHS); in visitSelectInstWithICmp()
503 if (ConstantInt *Cmp = dyn_cast<ConstantInt>(CmpRHS)) { in visitSelectInstWithICmp()
529 if (CmpRHS != CmpLHS && isa<Constant>(CmpRHS)) { in visitSelectInstWithICmp()
532 SI.setOperand(1, CmpRHS); in visitSelectInstWithICmp()
536 SI.setOperand(2, CmpRHS); in visitSelectInstWithICmp()
550 match(CmpRHS, m_Zero())) { in visitSelectInstWithICmp()
553 } else if (Pred == ICmpInst::ICMP_SLT && match(CmpRHS, m_Zero())) { in visitSelectInstWithICmp()
558 } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) { in visitSelectInstWithICmp()