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;
369 const ICmpInst *IC = dyn_cast<ICmpInst>(SI.getCondition());
407 ICmpInst::Predicate Pred = IC->getPredicate();
408 if ((Pred == ICmpInst::ICMP_NE && OrOnFalseVal) ||
409 (Pred == ICmpInst::ICMP_EQ && OrOnTrueVal))
416 /// ICmpInst as its first operand.
419 ICmpInst *ICI) {
421 ICmpInst::Predicate Pred = ICI->getPredicate();
433 if ((Pred == ICmpInst::ICMP_SLT || Pred == ICmpInst::ICMP_ULT)
434 && CI->isMinValue(Pred == ICmpInst::ICMP_SLT))
437 else if ((Pred == ICmpInst::ICMP_SGT || Pred == ICmpInst::ICMP_UGT)
438 && CI->isMaxValue(Pred == ICmpInst::ICMP_SGT))
442 case ICmpInst::ICMP_ULT:
443 case ICmpInst::ICMP_SLT:
444 case ICmpInst::ICMP_UGT:
445 case ICmpInst::ICMP_SGT: {
452 if (Pred == ICmpInst::ICMP_UGT || Pred == ICmpInst::ICMP_SGT)
454 else // (Pred == ICmpInst::ICMP_ULT || Pred == ICmpInst::ICMP_SLT)
503 Pred = ICmpInst::getSwappedPredicate(Pred);
531 if (Pred == ICmpInst::ICMP_SGT && Cmp->isAllOnesValue()) {
534 } else if (Pred == ICmpInst::ICMP_SLT && Cmp->isNullValue()) {
556 if (Pred == ICmpInst::ICMP_EQ) {
563 } else if (Pred == ICmpInst::ICMP_NE) {
575 if (CmpLHS == TrueVal && Pred == ICmpInst::ICMP_EQ) {
579 } else if (CmpLHS == FalseVal && Pred == ICmpInst::ICMP_NE) {
664 const ICmpInst *IC = dyn_cast<ICmpInst>(SI.getCondition());
722 ShouldNotVal ^= IC->getPredicate() == ICmpInst::ICMP_NE;
862 if (ICmpInst *ICI = dyn_cast<ICmpInst>(CondVal))