• Home
  • Raw
  • Download

Lines Matching refs:CmpInst

404 static Value *ThreadCmpOverSelect(CmpInst::Predicate Pred, Value *LHS,  in ThreadCmpOverSelect()
415 Pred = CmpInst::getSwappedPredicate(Pred); in ThreadCmpOverSelect()
504 static Value *ThreadCmpOverPHI(CmpInst::Predicate Pred, Value *LHS, Value *RHS, in ThreadCmpOverPHI()
514 Pred = CmpInst::getSwappedPredicate(Pred); in ThreadCmpOverPHI()
1396 return CmpInst::makeCmpResultType(Op->getType()); in GetCompareTy()
1402 static Value *ExtractEquivalentCondition(Value *V, CmpInst::Predicate Pred, in ExtractEquivalentCondition()
1407 CmpInst *Cmp = dyn_cast<CmpInst>(SI->getCondition()); in ExtractEquivalentCondition()
1413 if (Pred == CmpInst::getSwappedPredicate(Cmp->getPredicate()) && in ExtractEquivalentCondition()
1424 CmpInst::Predicate Pred = (CmpInst::Predicate)Predicate; in SimplifyICmpInst()
1425 assert(CmpInst::isIntPredicate(Pred) && "Not an integer compare!"); in SimplifyICmpInst()
1433 Pred = CmpInst::getSwappedPredicate(Pred); in SimplifyICmpInst()
1443 return ConstantInt::get(ITy, CmpInst::isTrueWhenEqual(Pred)); in SimplifyICmpInst()
1492 return ConstantInt::get(ITy, CmpInst::isFalseWhenEqual(Pred)); in SimplifyICmpInst()
1783 (CmpInst::isUnsigned(Pred) && LBO->hasNoUnsignedWrap()) || in SimplifyICmpInst()
1784 (CmpInst::isSigned(Pred) && LBO->hasNoSignedWrap()); in SimplifyICmpInst()
1789 (CmpInst::isUnsigned(Pred) && RBO->hasNoUnsignedWrap()) || in SimplifyICmpInst()
1790 (CmpInst::isSigned(Pred) && RBO->hasNoSignedWrap()); in SimplifyICmpInst()
1907 CmpInst::Predicate P = CmpInst::BAD_ICMP_PREDICATE; in SimplifyICmpInst()
1908 CmpInst::Predicate EqP; // Chosen so that "A == max/min(A,B)" iff "A EqP B". in SimplifyICmpInst()
1913 EqP = CmpInst::ICMP_SGE; // "A == smax(A, B)" iff "A sge B". in SimplifyICmpInst()
1919 EqP = CmpInst::ICMP_SGE; // "A == smax(A, B)" iff "A sge B". in SimplifyICmpInst()
1921 P = CmpInst::getSwappedPredicate(Pred); in SimplifyICmpInst()
1925 EqP = CmpInst::ICMP_SLE; // "A == smin(A, B)" iff "A sle B". in SimplifyICmpInst()
1928 P = CmpInst::getSwappedPredicate(Pred); in SimplifyICmpInst()
1932 EqP = CmpInst::ICMP_SLE; // "A == smin(A, B)" iff "A sle B". in SimplifyICmpInst()
1937 if (P != CmpInst::BAD_ICMP_PREDICATE) { in SimplifyICmpInst()
1942 case CmpInst::ICMP_EQ: in SimplifyICmpInst()
1943 case CmpInst::ICMP_SLE: in SimplifyICmpInst()
1955 case CmpInst::ICMP_NE: in SimplifyICmpInst()
1956 case CmpInst::ICMP_SGT: { in SimplifyICmpInst()
1957 CmpInst::Predicate InvEqP = CmpInst::getInversePredicate(EqP); in SimplifyICmpInst()
1970 case CmpInst::ICMP_SGE: in SimplifyICmpInst()
1973 case CmpInst::ICMP_SLT: in SimplifyICmpInst()
1980 P = CmpInst::BAD_ICMP_PREDICATE; in SimplifyICmpInst()
1983 EqP = CmpInst::ICMP_UGE; // "A == umax(A, B)" iff "A uge B". in SimplifyICmpInst()
1989 EqP = CmpInst::ICMP_UGE; // "A == umax(A, B)" iff "A uge B". in SimplifyICmpInst()
1991 P = CmpInst::getSwappedPredicate(Pred); in SimplifyICmpInst()
1995 EqP = CmpInst::ICMP_ULE; // "A == umin(A, B)" iff "A ule B". in SimplifyICmpInst()
1998 P = CmpInst::getSwappedPredicate(Pred); in SimplifyICmpInst()
2002 EqP = CmpInst::ICMP_ULE; // "A == umin(A, B)" iff "A ule B". in SimplifyICmpInst()
2007 if (P != CmpInst::BAD_ICMP_PREDICATE) { in SimplifyICmpInst()
2012 case CmpInst::ICMP_EQ: in SimplifyICmpInst()
2013 case CmpInst::ICMP_ULE: in SimplifyICmpInst()
2025 case CmpInst::ICMP_NE: in SimplifyICmpInst()
2026 case CmpInst::ICMP_UGT: { in SimplifyICmpInst()
2027 CmpInst::Predicate InvEqP = CmpInst::getInversePredicate(EqP); in SimplifyICmpInst()
2040 case CmpInst::ICMP_UGE: in SimplifyICmpInst()
2043 case CmpInst::ICMP_ULT: in SimplifyICmpInst()
2055 if (Pred == CmpInst::ICMP_SGE) in SimplifyICmpInst()
2058 if (Pred == CmpInst::ICMP_SLT) in SimplifyICmpInst()
2065 if (Pred == CmpInst::ICMP_SLE) in SimplifyICmpInst()
2068 if (Pred == CmpInst::ICMP_SGT) in SimplifyICmpInst()
2075 if (Pred == CmpInst::ICMP_UGE) in SimplifyICmpInst()
2078 if (Pred == CmpInst::ICMP_ULT) in SimplifyICmpInst()
2085 if (Pred == CmpInst::ICMP_ULE) in SimplifyICmpInst()
2088 if (Pred == CmpInst::ICMP_UGT) in SimplifyICmpInst()
2118 CmpInst::Predicate Pred = (CmpInst::Predicate)Predicate; in SimplifyFCmpInst()
2119 assert(CmpInst::isFPPredicate(Pred) && "Not an FP compare!"); in SimplifyFCmpInst()
2127 Pred = CmpInst::getSwappedPredicate(Pred); in SimplifyFCmpInst()
2141 if (CmpInst::isTrueWhenEqual(Pred)) in SimplifyFCmpInst()
2143 if (CmpInst::isFalseWhenEqual(Pred)) in SimplifyFCmpInst()
2409 if (CmpInst::isIntPredicate((CmpInst::Predicate)Predicate)) in SimplifyCmpInst()