Lines Matching refs:ICmpInst
469 return new ICmpInst(ICmpInst::ICMP_NE, Src, Zero);
510 Instruction *InstCombiner::transformZExtICmp(ICmpInst *ICI, Instruction &CI,
520 if ((ICI->getPredicate() == ICmpInst::ICMP_SLT && Op1CV == 0) ||
521 (ICI->getPredicate() == ICmpInst::ICMP_SGT &&Op1CV.isAllOnesValue())) {
531 if (ICI->getPredicate() == ICmpInst::ICMP_SGT) {
559 bool isNE = ICI->getPredicate() == ICmpInst::ICMP_NE;
621 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
843 if (ICmpInst *ICI = dyn_cast<ICmpInst>(Src))
850 ICmpInst *LHS = dyn_cast<ICmpInst>(SrcI->getOperand(0));
851 ICmpInst *RHS = dyn_cast<ICmpInst>(SrcI->getOperand(1));
901 Instruction *InstCombiner::transformSExtICmp(ICmpInst *ICI, Instruction &CI) {
903 ICmpInst::Predicate Pred = ICI->getPredicate();
908 if ((Pred == ICmpInst::ICMP_SLT && Op1C->isZero()) ||
909 (Pred == ICmpInst::ICMP_SGT && Op1C->isAllOnesValue())) {
917 if (Pred == ICmpInst::ICMP_SGT)
937 Value *V = Pred == ICmpInst::ICMP_NE ?
943 if (!Op1C->isZero() == (Pred == ICmpInst::ICMP_NE)) {
980 if (Pred == ICmpInst::ICMP_SLT && match(Op1, m_Zero()) &&
1115 if (ICmpInst *ICI = dyn_cast<ICmpInst>(Src))