Lines Matching refs:ICmpInst
467 return new ICmpInst(ICmpInst::ICMP_NE, Src, Zero); in visitTrunc()
508 Instruction *InstCombiner::transformZExtICmp(ICmpInst *ICI, Instruction &CI, in transformZExtICmp()
518 if ((ICI->getPredicate() == ICmpInst::ICMP_SLT && Op1CV == 0) || in transformZExtICmp()
519 (ICI->getPredicate() == ICmpInst::ICMP_SGT &&Op1CV.isAllOnesValue())) { in transformZExtICmp()
529 if (ICI->getPredicate() == ICmpInst::ICMP_SGT) { in transformZExtICmp()
557 bool isNE = ICI->getPredicate() == ICmpInst::ICMP_NE; in transformZExtICmp()
619 if (ICI->getPredicate() == ICmpInst::ICMP_EQ) in transformZExtICmp()
845 if (ICmpInst *ICI = dyn_cast<ICmpInst>(Src)) in visitZExt()
852 ICmpInst *LHS = dyn_cast<ICmpInst>(SrcI->getOperand(0)); in visitZExt()
853 ICmpInst *RHS = dyn_cast<ICmpInst>(SrcI->getOperand(1)); in visitZExt()
893 Instruction *InstCombiner::transformSExtICmp(ICmpInst *ICI, Instruction &CI) { in transformSExtICmp()
895 ICmpInst::Predicate Pred = ICI->getPredicate(); in transformSExtICmp()
904 if ((Pred == ICmpInst::ICMP_SLT && Op1C->isNullValue()) || in transformSExtICmp()
905 (Pred == ICmpInst::ICMP_SGT && Op1C->isAllOnesValue())) { in transformSExtICmp()
913 if (Pred == ICmpInst::ICMP_SGT) in transformSExtICmp()
935 Value *V = Pred == ICmpInst::ICMP_NE ? in transformSExtICmp()
941 if (!Op1C->isZero() == (Pred == ICmpInst::ICMP_NE)) { in transformSExtICmp()
1109 if (ICmpInst *ICI = dyn_cast<ICmpInst>(Src)) in visitSExt()