Lines Matching refs:LHSI
4094 Instruction *LHSI = dyn_cast<Instruction>(Op0); in foldICmpInstWithConstantNotInt() local
4095 if (!RHSC || !LHSI) in foldICmpInstWithConstantNotInt()
4098 switch (LHSI->getOpcode()) { in foldICmpInstWithConstantNotInt()
4100 if (Instruction *NV = foldOpIntoPhi(I, cast<PHINode>(LHSI))) in foldICmpInstWithConstantNotInt()
4106 DL.getIntPtrType(RHSC->getType()) == LHSI->getOperand(0)->getType()) in foldICmpInstWithConstantNotInt()
4108 I.getPredicate(), LHSI->getOperand(0), in foldICmpInstWithConstantNotInt()
4109 Constant::getNullValue(LHSI->getOperand(0)->getType())); in foldICmpInstWithConstantNotInt()
4115 dyn_cast<GetElementPtrInst>(LHSI->getOperand(0))) in foldICmpInstWithConstantNotInt()
4118 foldCmpLoadFromIndexedGlobal(cast<LoadInst>(LHSI), GEP, GV, I)) in foldICmpInstWithConstantNotInt()
7604 Instruction *LHSI, in foldFCmpIntToFPConst() argument
7612 int MantissaWidth = LHSI->getType()->getFPMantissaWidth(); in foldFCmpIntToFPConst()
7615 Type *IntTy = LHSI->getOperand(0)->getType(); in foldFCmpIntToFPConst()
7617 bool LHSUnsigned = isa<UIToFPInst>(LHSI); in foldFCmpIntToFPConst()
7834 return new ICmpInst(Pred, LHSI->getOperand(0), in foldFCmpIntToFPConst()
7835 ConstantInt::get(LHSI->getOperand(0)->getType(), RHSInt)); in foldFCmpIntToFPConst()
7839 static Instruction *foldFCmpReciprocalAndZero(FCmpInst &I, Instruction *LHSI, in foldFCmpReciprocalAndZero() argument
7866 if (!LHSI->hasNoInfs() || !I.hasNoInfs()) in foldFCmpReciprocalAndZero()
7872 if (!match(LHSI->getOperand(0), m_APFloat(C))) in foldFCmpReciprocalAndZero()
7882 return new FCmpInst(Pred, LHSI->getOperand(1), RHSC, "", &I); in foldFCmpReciprocalAndZero()
8005 static Instruction *foldFCmpFSubIntoFCmp(FCmpInst &I, Instruction *LHSI, in foldFCmpFSubIntoFCmp() argument
8008 Value *X = LHSI->getOperand(0); in foldFCmpFSubIntoFCmp()
8009 Value *Y = LHSI->getOperand(1); in foldFCmpFSubIntoFCmp()
8023 if (!LHSI->hasNoNaNs() && !LHSI->hasNoInfs() && in foldFCmpFSubIntoFCmp()
8040 LHSI->getType()->getScalarType()->getFltSemantics()) == in foldFCmpFSubIntoFCmp()
8208 Instruction *LHSI; in visitFCmpInst() local
8210 if (match(Op0, m_Instruction(LHSI)) && match(Op1, m_Constant(RHSC))) { in visitFCmpInst()
8211 switch (LHSI->getOpcode()) { in visitFCmpInst()
8215 (match(LHSI, in visitFCmpInst()
8217 match(LHSI, m_Select(m_Value(), m_FNeg(m_Value(X)), m_Deferred(X))))) in visitFCmpInst()
8219 if (Instruction *NV = FoldOpIntoSelect(I, cast<SelectInst>(LHSI))) in visitFCmpInst()
8223 if (LHSI->hasOneUse()) in visitFCmpInst()
8224 if (Instruction *NV = foldFCmpFSubIntoFCmp(I, LHSI, RHSC, *this)) in visitFCmpInst()
8228 if (Instruction *NV = foldOpIntoPhi(I, cast<PHINode>(LHSI))) in visitFCmpInst()
8233 if (Instruction *NV = foldFCmpIntToFPConst(I, LHSI, RHSC)) in visitFCmpInst()
8237 if (Instruction *NV = foldFCmpReciprocalAndZero(I, LHSI, RHSC)) in visitFCmpInst()
8241 if (auto *GEP = dyn_cast<GetElementPtrInst>(LHSI->getOperand(0))) in visitFCmpInst()
8244 cast<LoadInst>(LHSI), GEP, GV, I)) in visitFCmpInst()