Home | History | Annotate | Download | only in InstCombine

Lines Matching defs:CmpRHS

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