Lines Matching refs:LHSI

3529   Instruction *LHSI = dyn_cast<Instruction>(Op0);  in foldICmpInstWithConstantNotInt()  local
3530 if (!RHSC || !LHSI) in foldICmpInstWithConstantNotInt()
3533 switch (LHSI->getOpcode()) { in foldICmpInstWithConstantNotInt()
3537 cast<GetElementPtrInst>(LHSI)->hasAllZeroIndices()) in foldICmpInstWithConstantNotInt()
3539 I.getPredicate(), LHSI->getOperand(0), in foldICmpInstWithConstantNotInt()
3540 Constant::getNullValue(LHSI->getOperand(0)->getType())); in foldICmpInstWithConstantNotInt()
3546 if (LHSI->getParent() == I.getParent()) in foldICmpInstWithConstantNotInt()
3547 if (Instruction *NV = foldOpIntoPhi(I, cast<PHINode>(LHSI))) in foldICmpInstWithConstantNotInt()
3553 DL.getIntPtrType(RHSC->getType()) == LHSI->getOperand(0)->getType()) in foldICmpInstWithConstantNotInt()
3555 I.getPredicate(), LHSI->getOperand(0), in foldICmpInstWithConstantNotInt()
3556 Constant::getNullValue(LHSI->getOperand(0)->getType())); in foldICmpInstWithConstantNotInt()
3562 dyn_cast<GetElementPtrInst>(LHSI->getOperand(0))) in foldICmpInstWithConstantNotInt()
3565 foldCmpLoadFromIndexedGlobal(cast<LoadInst>(LHSI), GEP, GV, I)) in foldICmpInstWithConstantNotInt()
6381 Instruction *LHSI, in foldFCmpIntToFPConst() argument
6388 int MantissaWidth = LHSI->getType()->getFPMantissaWidth(); in foldFCmpIntToFPConst()
6391 IntegerType *IntTy = cast<IntegerType>(LHSI->getOperand(0)->getType()); in foldFCmpIntToFPConst()
6393 bool LHSUnsigned = isa<UIToFPInst>(LHSI); in foldFCmpIntToFPConst()
6616 return new ICmpInst(Pred, LHSI->getOperand(0), RHSInt); in foldFCmpIntToFPConst()
6620 static Instruction *foldFCmpReciprocalAndZero(FCmpInst &I, Instruction *LHSI, in foldFCmpReciprocalAndZero() argument
6647 if (!LHSI->hasNoInfs() || !I.hasNoInfs()) in foldFCmpReciprocalAndZero()
6653 if (!match(LHSI->getOperand(0), m_APFloat(C))) in foldFCmpReciprocalAndZero()
6663 return new FCmpInst(Pred, LHSI->getOperand(1), RHSC, "", &I); in foldFCmpReciprocalAndZero()
6830 Instruction *LHSI; in visitFCmpInst() local
6832 if (match(Op0, m_Instruction(LHSI)) && match(Op1, m_Constant(RHSC))) { in visitFCmpInst()
6833 switch (LHSI->getOpcode()) { in visitFCmpInst()
6838 if (LHSI->getParent() == I.getParent()) in visitFCmpInst()
6839 if (Instruction *NV = foldOpIntoPhi(I, cast<PHINode>(LHSI))) in visitFCmpInst()
6844 if (Instruction *NV = foldFCmpIntToFPConst(I, LHSI, RHSC)) in visitFCmpInst()
6848 if (Instruction *NV = foldFCmpReciprocalAndZero(I, LHSI, RHSC)) in visitFCmpInst()
6852 if (auto *GEP = dyn_cast<GetElementPtrInst>(LHSI->getOperand(0))) in visitFCmpInst()
6855 cast<LoadInst>(LHSI), GEP, GV, I)) in visitFCmpInst()