Lines Matching refs:CmpRHS
317 Value *CmpRHS = IC->getOperand(1); in foldSelectICmpAndOr() local
319 if (!match(CmpRHS, m_Zero())) in foldSelectICmpAndOr()
374 Value *CmpRHS = ICI->getOperand(1); in foldSelectCttzCtlz() local
377 if (!ICI->isEquality() || !match(CmpRHS, m_Zero())) in foldSelectCttzCtlz()
420 Value *CmpRHS = ICI->getOperand(1); in visitSelectInstWithICmp() local
428 if (ConstantInt *CI = dyn_cast<ConstantInt>(CmpRHS)) { in visitSelectInstWithICmp()
455 else if (CmpRHS->getType()->getScalarSizeInBits() in visitSelectInstWithICmp()
493 CmpRHS = AdjustedRHS; in visitSelectInstWithICmp()
497 ICI->setOperand(1, CmpRHS); in visitSelectInstWithICmp()
518 if (ConstantInt *Cmp = dyn_cast<ConstantInt>(CmpRHS)) { in visitSelectInstWithICmp()
544 if (CmpRHS != CmpLHS && isa<Constant>(CmpRHS)) { in visitSelectInstWithICmp()
547 SI.setOperand(1, CmpRHS); in visitSelectInstWithICmp()
551 SI.setOperand(2, CmpRHS); in visitSelectInstWithICmp()
565 match(CmpRHS, m_Zero())) { in visitSelectInstWithICmp()
568 } else if (Pred == ICmpInst::ICMP_SLT && match(CmpRHS, m_Zero())) { in visitSelectInstWithICmp()
573 } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) { in visitSelectInstWithICmp()