Lines Matching refs:RHSC
2423 APInt RHSC = C; in foldICmpShlConstant() local
2425 if (RHSC.countr_zero() < Amt && ICmpInst::isStrictPredicate(CmpPred)) { in foldICmpShlConstant()
2436 RHSC = cast<ConstantInt>(FlippedStrictness->second)->getValue(); in foldICmpShlConstant()
2440 if (RHSC.countr_zero() >= Amt) { in foldICmpShlConstant()
2443 ConstantInt::get(TruncTy, RHSC.ashr(*ShiftAmt).trunc(TypeBits - Amt)); in foldICmpShlConstant()
4093 Constant *RHSC = dyn_cast<Constant>(Op1); in foldICmpInstWithConstantNotInt() local
4095 if (!RHSC || !LHSI) in foldICmpInstWithConstantNotInt()
4105 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt()
4106 DL.getIntPtrType(RHSC->getType()) == LHSI->getOperand(0)->getType()) in foldICmpInstWithConstantNotInt()
5186 if (Constant *RHSC = dyn_cast<Constant>(Op1)) in foldICmpBinOp() local
5187 if (RHSC->isNotMinSignedValue()) in foldICmpBinOp()
5189 ConstantExpr::getNeg(RHSC)); in foldICmpBinOp()
6030 } else if (auto *RHSC = dyn_cast<Constant>(ICmp.getOperand(1))) { in foldICmpWithCastOp() local
6031 NewOp1 = ConstantExpr::getIntToPtr(RHSC, SrcTy); in foldICmpWithCastOp()
7605 Constant *RHSC) { in foldFCmpIntToFPConst() argument
7607 if (!match(RHSC, m_APFloat(RHS))) in foldFCmpIntToFPConst()
7840 Constant *RHSC) { in foldFCmpReciprocalAndZero() argument
7862 if (!match(RHSC, m_AnyZeroFP())) in foldFCmpReciprocalAndZero()
7882 return new FCmpInst(Pred, LHSI->getOperand(1), RHSC, "", &I); in foldFCmpReciprocalAndZero()
8006 Constant *RHSC, InstCombinerImpl &CI) { in foldFCmpFSubIntoFCmp() argument
8038 if (match(RHSC, m_AnyZeroFP()) && in foldFCmpFSubIntoFCmp()
8209 Constant *RHSC; in visitFCmpInst() local
8210 if (match(Op0, m_Instruction(LHSI)) && match(Op1, m_Constant(RHSC))) { in visitFCmpInst()
8214 if (FCmpInst::isEquality(Pred) && match(RHSC, m_AnyZeroFP()) && in visitFCmpInst()
8224 if (Instruction *NV = foldFCmpFSubIntoFCmp(I, LHSI, RHSC, *this)) in visitFCmpInst()
8233 if (Instruction *NV = foldFCmpIntToFPConst(I, LHSI, RHSC)) in visitFCmpInst()
8237 if (Instruction *NV = foldFCmpReciprocalAndZero(I, LHSI, RHSC)) in visitFCmpInst()