Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:ICmpInst

29   ICmpInst *ICI = dyn_cast<ICmpInst>(SI->getCondition());
40 case ICmpInst::ICMP_UGT:
41 case ICmpInst::ICMP_UGE: return SPF_UMAX;
42 case ICmpInst::ICMP_SGT:
43 case ICmpInst::ICMP_SGE: return SPF_SMAX;
44 case ICmpInst::ICMP_ULT:
45 case ICmpInst::ICMP_ULE: return SPF_UMIN;
46 case ICmpInst::ICMP_SLT:
47 case ICmpInst::ICMP_SLE: return SPF_SMIN;
56 case ICmpInst::ICMP_UGT:
57 case ICmpInst::ICMP_UGE: return SPF_UMIN;
58 case ICmpInst::ICMP_SGT:
59 case ICmpInst::ICMP_SGE: return SPF_SMIN;
60 case ICmpInst::ICMP_ULT:
61 case ICmpInst::ICMP_ULE: return SPF_UMAX;
62 case ICmpInst::ICMP_SLT:
63 case ICmpInst::ICMP_SLE: return SPF_SMAX;
353 /// ICmpInst as its first operand.
356 ICmpInst *ICI) {
358 ICmpInst::Predicate Pred = ICI->getPredicate();
370 if ((Pred == ICmpInst::ICMP_SLT || Pred == ICmpInst::ICMP_ULT)
371 && CI->isMinValue(Pred == ICmpInst::ICMP_SLT))
374 else if ((Pred == ICmpInst::ICMP_SGT || Pred == ICmpInst::ICMP_UGT)
375 && CI->isMaxValue(Pred == ICmpInst::ICMP_SGT))
379 case ICmpInst::ICMP_ULT:
380 case ICmpInst::ICMP_SLT:
381 case ICmpInst::ICMP_UGT:
382 case ICmpInst::ICMP_SGT: {
389 if (Pred == ICmpInst::ICMP_UGT || Pred == ICmpInst::ICMP_SGT)
391 else // (Pred == ICmpInst::ICMP_ULT || Pred == ICmpInst::ICMP_SLT)
440 Pred = ICmpInst::getSwappedPredicate(Pred);
468 if (Pred == ICmpInst::ICMP_SGT && Cmp->isAllOnesValue()) {
471 } else if (Pred == ICmpInst::ICMP_SLT && Cmp->isNullValue()) {
493 if (Pred == ICmpInst::ICMP_EQ) {
500 } else if (Pred == ICmpInst::ICMP_NE) {
512 if (CmpLHS == TrueVal && Pred == ICmpInst::ICMP_EQ) {
516 } else if (CmpLHS == FalseVal && Pred == ICmpInst::ICMP_NE) {
598 const ICmpInst *IC = dyn_cast<ICmpInst>(SI.getCondition());
651 ShouldNotVal ^= IC->getPredicate() == ICmpInst::ICMP_NE;
790 if (ICmpInst *ICI = dyn_cast<ICmpInst>(CondVal))