Lines Matching refs:RHSC
3300 Constant *RHSC = dyn_cast<Constant>(Op1); in foldICmpInstWithConstantNotInt() local
3302 if (!RHSC || !LHSI) in foldICmpInstWithConstantNotInt()
3308 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt()
3332 Op = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in foldICmpInstWithConstantNotInt()
3333 } else if (RHSC->isNullValue()) { in foldICmpInstWithConstantNotInt()
3335 Op = SimplifyICmpInst(I.getPredicate(), V, RHSC, SQ); in foldICmpInstWithConstantNotInt()
3371 Op1 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(1), RHSC, in foldICmpInstWithConstantNotInt()
3374 Op2 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(2), RHSC, in foldICmpInstWithConstantNotInt()
3382 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt()
3383 DL.getIntPtrType(RHSC->getType()) == LHSI->getOperand(0)->getType()) in foldICmpInstWithConstantNotInt()
4068 if (Constant *RHSC = dyn_cast<Constant>(Op1)) in foldICmpBinOp() local
4069 if (RHSC->isNotMinSignedValue()) in foldICmpBinOp()
4071 ConstantExpr::getNeg(RHSC)); in foldICmpBinOp()
4615 } else if (auto *RHSC = dyn_cast<Constant>(ICmp.getOperand(1))) { in foldICmpWithCastOp() local
4616 NewOp1 = ConstantExpr::getIntToPtr(RHSC, SrcTy); in foldICmpWithCastOp()
5919 Constant *RHSC) { in foldFCmpIntToFPConst() argument
5920 if (!isa<ConstantFP>(RHSC)) return nullptr; in foldFCmpIntToFPConst()
5921 const APFloat &RHS = cast<ConstantFP>(RHSC)->getValueAPF(); in foldFCmpIntToFPConst()
6081 ? ConstantExpr::getFPToUI(RHSC, IntTy) in foldFCmpIntToFPConst()
6082 : ConstantExpr::getFPToSI(RHSC, IntTy); in foldFCmpIntToFPConst()
6085 ? ConstantExpr::getUIToFP(RHSInt, RHSC->getType()) == RHSC in foldFCmpIntToFPConst()
6086 : ConstantExpr::getSIToFP(RHSInt, RHSC->getType()) == RHSC; in foldFCmpIntToFPConst()
6158 Constant *RHSC) { in foldFCmpReciprocalAndZero() argument
6180 if (!match(RHSC, m_AnyZeroFP())) in foldFCmpReciprocalAndZero()
6200 return new FCmpInst(Pred, LHSI->getOperand(1), RHSC, "", &I); in foldFCmpReciprocalAndZero()
6346 Constant *RHSC; in visitFCmpInst() local
6347 if (match(Op0, m_Instruction(LHSI)) && match(Op1, m_Constant(RHSC))) { in visitFCmpInst()
6359 if (Instruction *NV = foldFCmpIntToFPConst(I, LHSI, RHSC)) in visitFCmpInst()
6363 if (Instruction *NV = foldFCmpReciprocalAndZero(I, LHSI, RHSC)) in visitFCmpInst()