• Home
  • Raw
  • Download

Lines Matching refs:Pred

404 static Value *ThreadCmpOverSelect(CmpInst::Predicate Pred, Value *LHS,  in ThreadCmpOverSelect()  argument
415 Pred = CmpInst::getSwappedPredicate(Pred); in ThreadCmpOverSelect()
422 if (Value *TCmp = SimplifyCmpInst(Pred, SI->getTrueValue(), RHS, TD, DT, in ThreadCmpOverSelect()
425 if (Value *FCmp = SimplifyCmpInst(Pred, SI->getFalseValue(), RHS, TD, DT, in ThreadCmpOverSelect()
504 static Value *ThreadCmpOverPHI(CmpInst::Predicate Pred, Value *LHS, Value *RHS, in ThreadCmpOverPHI() argument
514 Pred = CmpInst::getSwappedPredicate(Pred); in ThreadCmpOverPHI()
529 Value *V = SimplifyCmpInst(Pred, Incoming, RHS, TD, DT, MaxRecurse); in ThreadCmpOverPHI()
1402 static Value *ExtractEquivalentCondition(Value *V, CmpInst::Predicate Pred, in ExtractEquivalentCondition() argument
1411 if (Pred == Cmp->getPredicate() && LHS == CmpLHS && RHS == CmpRHS) in ExtractEquivalentCondition()
1413 if (Pred == CmpInst::getSwappedPredicate(Cmp->getPredicate()) && in ExtractEquivalentCondition()
1424 CmpInst::Predicate Pred = (CmpInst::Predicate)Predicate; in SimplifyICmpInst() local
1425 assert(CmpInst::isIntPredicate(Pred) && "Not an integer compare!"); in SimplifyICmpInst()
1429 return ConstantFoldCompareInstOperands(Pred, CLHS, CRHS, TD); in SimplifyICmpInst()
1433 Pred = CmpInst::getSwappedPredicate(Pred); in SimplifyICmpInst()
1443 return ConstantInt::get(ITy, CmpInst::isTrueWhenEqual(Pred)); in SimplifyICmpInst()
1448 switch (Pred) { in SimplifyICmpInst()
1492 return ConstantInt::get(ITy, CmpInst::isFalseWhenEqual(Pred)); in SimplifyICmpInst()
1497 switch (Pred) { in SimplifyICmpInst()
1548 ConstantRange RHS_CR = ICmpInst::makeConstantRange(Pred, CI->getValue()); in SimplifyICmpInst()
1623 if (Value *V = SimplifyICmpInst(Pred, SrcOp, in SimplifyICmpInst()
1630 if (Value *V = SimplifyICmpInst(Pred, SrcOp, RI->getOperand(0), in SimplifyICmpInst()
1642 if (Value *V = SimplifyICmpInst(ICmpInst::getUnsignedPredicate(Pred), in SimplifyICmpInst()
1658 if (Value *V = SimplifyICmpInst(ICmpInst::getUnsignedPredicate(Pred), in SimplifyICmpInst()
1665 switch (Pred) { in SimplifyICmpInst()
1703 if (Value *V = SimplifyICmpInst(Pred, SrcOp, RI->getOperand(0), in SimplifyICmpInst()
1718 if (Value *V = SimplifyICmpInst(Pred, SrcOp, Trunc, TD, DT, in SimplifyICmpInst()
1725 switch (Pred) { in SimplifyICmpInst()
1782 NoLHSWrapProblem = ICmpInst::isEquality(Pred) || in SimplifyICmpInst()
1783 (CmpInst::isUnsigned(Pred) && LBO->hasNoUnsignedWrap()) || in SimplifyICmpInst()
1784 (CmpInst::isSigned(Pred) && LBO->hasNoSignedWrap()); in SimplifyICmpInst()
1788 NoRHSWrapProblem = ICmpInst::isEquality(Pred) || in SimplifyICmpInst()
1789 (CmpInst::isUnsigned(Pred) && RBO->hasNoUnsignedWrap()) || in SimplifyICmpInst()
1790 (CmpInst::isSigned(Pred) && RBO->hasNoSignedWrap()); in SimplifyICmpInst()
1795 if (Value *V = SimplifyICmpInst(Pred, A == RHS ? B : A, in SimplifyICmpInst()
1802 if (Value *V = SimplifyICmpInst(Pred, in SimplifyICmpInst()
1813 if (Value *V = SimplifyICmpInst(Pred, Y, Z, TD, DT, MaxRecurse-1)) in SimplifyICmpInst()
1820 switch (Pred) { in SimplifyICmpInst()
1847 switch (Pred) { in SimplifyICmpInst()
1879 if (ICmpInst::isSigned(Pred)) in SimplifyICmpInst()
1886 if (Value *V = SimplifyICmpInst(Pred, LBO->getOperand(0), in SimplifyICmpInst()
1895 if (!NSW && ICmpInst::isSigned(Pred)) in SimplifyICmpInst()
1897 if (Value *V = SimplifyICmpInst(Pred, LBO->getOperand(0), in SimplifyICmpInst()
1915 P = Pred; in SimplifyICmpInst()
1921 P = CmpInst::getSwappedPredicate(Pred); in SimplifyICmpInst()
1928 P = CmpInst::getSwappedPredicate(Pred); in SimplifyICmpInst()
1935 P = Pred; in SimplifyICmpInst()
1985 P = Pred; in SimplifyICmpInst()
1991 P = CmpInst::getSwappedPredicate(Pred); in SimplifyICmpInst()
1998 P = CmpInst::getSwappedPredicate(Pred); in SimplifyICmpInst()
2005 P = Pred; 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()
2096 if (Value *V = ThreadCmpOverSelect(Pred, LHS, RHS, TD, DT, MaxRecurse)) in SimplifyICmpInst()
2102 if (Value *V = ThreadCmpOverPHI(Pred, LHS, RHS, TD, DT, MaxRecurse)) in SimplifyICmpInst()
2118 CmpInst::Predicate Pred = (CmpInst::Predicate)Predicate; in SimplifyFCmpInst() local
2119 assert(CmpInst::isFPPredicate(Pred) && "Not an FP compare!"); in SimplifyFCmpInst()
2123 return ConstantFoldCompareInstOperands(Pred, CLHS, CRHS, TD); in SimplifyFCmpInst()
2127 Pred = CmpInst::getSwappedPredicate(Pred); in SimplifyFCmpInst()
2131 if (Pred == FCmpInst::FCMP_FALSE) in SimplifyFCmpInst()
2133 if (Pred == FCmpInst::FCMP_TRUE) in SimplifyFCmpInst()
2141 if (CmpInst::isTrueWhenEqual(Pred)) in SimplifyFCmpInst()
2143 if (CmpInst::isFalseWhenEqual(Pred)) in SimplifyFCmpInst()
2152 if (FCmpInst::isOrdered(Pred)) // True "if ordered and foo" in SimplifyFCmpInst()
2154 assert(FCmpInst::isUnordered(Pred) && in SimplifyFCmpInst()
2162 switch (Pred) { in SimplifyFCmpInst()
2173 switch (Pred) { in SimplifyFCmpInst()
2191 if (Value *V = ThreadCmpOverSelect(Pred, LHS, RHS, TD, DT, MaxRecurse)) in SimplifyFCmpInst()
2197 if (Value *V = ThreadCmpOverPHI(Pred, LHS, RHS, TD, DT, MaxRecurse)) in SimplifyFCmpInst()