• Home
  • Raw
  • Download

Lines Matching refs:LHSI

3238   Instruction *LHSI = dyn_cast<Instruction>(Op0);  in foldICmpInstWithConstantNotInt()  local
3239 if (!RHSC || !LHSI) in foldICmpInstWithConstantNotInt()
3242 switch (LHSI->getOpcode()) { in foldICmpInstWithConstantNotInt()
3246 cast<GetElementPtrInst>(LHSI)->hasAllZeroIndices()) in foldICmpInstWithConstantNotInt()
3248 I.getPredicate(), LHSI->getOperand(0), in foldICmpInstWithConstantNotInt()
3249 Constant::getNullValue(LHSI->getOperand(0)->getType())); in foldICmpInstWithConstantNotInt()
3255 if (LHSI->getParent() == I.getParent()) in foldICmpInstWithConstantNotInt()
3256 if (Instruction *NV = foldOpIntoPhi(I, cast<PHINode>(LHSI))) in foldICmpInstWithConstantNotInt()
3265 if (Constant *C = dyn_cast<Constant>(LHSI->getOperand(1))) { in foldICmpInstWithConstantNotInt()
3269 if (Constant *C = dyn_cast<Constant>(LHSI->getOperand(2))) { in foldICmpInstWithConstantNotInt()
3286 if (LHSI->hasOneUse()) in foldICmpInstWithConstantNotInt()
3294 replacedSelectWithOperand(cast<SelectInst>(LHSI), &I, Op1 ? 2 : 1); in foldICmpInstWithConstantNotInt()
3298 Op1 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(1), RHSC, in foldICmpInstWithConstantNotInt()
3301 Op2 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(2), RHSC, in foldICmpInstWithConstantNotInt()
3303 return SelectInst::Create(LHSI->getOperand(0), Op1, Op2); in foldICmpInstWithConstantNotInt()
3310 DL.getIntPtrType(RHSC->getType()) == LHSI->getOperand(0)->getType()) in foldICmpInstWithConstantNotInt()
3312 I.getPredicate(), LHSI->getOperand(0), in foldICmpInstWithConstantNotInt()
3313 Constant::getNullValue(LHSI->getOperand(0)->getType())); in foldICmpInstWithConstantNotInt()
3319 dyn_cast<GetElementPtrInst>(LHSI->getOperand(0))) { in foldICmpInstWithConstantNotInt()
3322 !cast<LoadInst>(LHSI)->isVolatile()) in foldICmpInstWithConstantNotInt()
5816 Instruction *LHSI, in foldFCmpIntToFPConst() argument
5823 int MantissaWidth = LHSI->getType()->getFPMantissaWidth(); in foldFCmpIntToFPConst()
5826 IntegerType *IntTy = cast<IntegerType>(LHSI->getOperand(0)->getType()); in foldFCmpIntToFPConst()
5828 bool LHSUnsigned = isa<UIToFPInst>(LHSI); in foldFCmpIntToFPConst()
6051 return new ICmpInst(Pred, LHSI->getOperand(0), RHSInt); in foldFCmpIntToFPConst()
6055 static Instruction *foldFCmpReciprocalAndZero(FCmpInst &I, Instruction *LHSI, in foldFCmpReciprocalAndZero() argument
6082 if (!LHSI->hasNoInfs() || !I.hasNoInfs()) in foldFCmpReciprocalAndZero()
6088 if (!match(LHSI->getOperand(0), m_APFloat(C))) in foldFCmpReciprocalAndZero()
6098 return new FCmpInst(Pred, LHSI->getOperand(1), RHSC, "", &I); in foldFCmpReciprocalAndZero()
6243 Instruction *LHSI; in visitFCmpInst() local
6245 if (match(Op0, m_Instruction(LHSI)) && match(Op1, m_Constant(RHSC))) { in visitFCmpInst()
6246 switch (LHSI->getOpcode()) { in visitFCmpInst()
6251 if (LHSI->getParent() == I.getParent()) in visitFCmpInst()
6252 if (Instruction *NV = foldOpIntoPhi(I, cast<PHINode>(LHSI))) in visitFCmpInst()
6257 if (Instruction *NV = foldFCmpIntToFPConst(I, LHSI, RHSC)) in visitFCmpInst()
6261 if (Instruction *NV = foldFCmpReciprocalAndZero(I, LHSI, RHSC)) in visitFCmpInst()
6265 if (auto *GEP = dyn_cast<GetElementPtrInst>(LHSI->getOperand(0))) in visitFCmpInst()
6268 !cast<LoadInst>(LHSI)->isVolatile()) in visitFCmpInst()