/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | CmpInstAnalysis.cpp | 33 case ICmpInst::ICMP_SLT: return 4; // 100 in getICmpCode() 52 case 4: NewICmpPred = Sign ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; break; in getICmpValue() 79 case ICmpInst::ICMP_SLT: in decomposeBitTestICmp()
|
D | InstructionSimplify.cpp | 994 if (isICmpTrue(CmpInst::ICMP_SLT, Y, NegDividendC, Q, MaxRecurse) || in isDivZero() 1011 isICmpTrue(CmpInst::ICMP_SLT, X, PosDivisorC, Q, MaxRecurse)) in isDivZero() 1445 (Pred0 == ICmpInst::ICMP_SLT && Pred1 == ICmpInst::ICMP_SGT) || in simplifyAndOfICmpsWithSameOperands() 1579 if (Pred0 == ICmpInst::ICMP_SLT && Pred1 == ICmpInst::ICMP_SGT && isNSW) in simplifyAndOfICmpsWithAdd() 2341 case CmpInst::ICMP_SLT: // X <s 0 -> X in simplifyICmpOfBools() 2362 case CmpInst::ICMP_SLT: // X <s -1 -> false in simplifyICmpOfBools() 2424 case ICmpInst::ICMP_SLT: { in simplifyICmpWithZero() 2630 if (Pred == ICmpInst::ICMP_SLT && match(RHS, m_Zero())) in simplifyICmpWithConstant() 2754 if (Pred == ICmpInst::ICMP_SLT || Pred == ICmpInst::ICMP_SGE) { in simplifyICmpWithBinOp() 2758 return Pred == ICmpInst::ICMP_SLT ? getTrue(ITy) : getFalse(ITy); in simplifyICmpWithBinOp() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/ |
D | ValueLatticeTest.cpp | 102 EXPECT_TRUE(LV1.getCompare(CmpInst::ICMP_SLT, I1Ty, LV1)->isZeroValue()); in TEST_F() 108 EXPECT_TRUE(LV1.getCompare(CmpInst::ICMP_SLT, I1Ty, LV2)->isOneValue()); in TEST_F() 118 EXPECT_EQ(LV2.getCompare(CmpInst::ICMP_SLT, I1Ty, LV3), nullptr); in TEST_F() 128 EXPECT_EQ(LV3.getCompare(CmpInst::ICMP_SLT, I1Ty, LV4), nullptr); in TEST_F() 169 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_SLT, I1Ty, LV2))); in TEST_F()
|
/external/llvm/lib/Transforms/Utils/ |
D | CmpInstAnalysis.cpp | 55 case ICmpInst::ICMP_SLT: return 4; // 100 in getICmpCode() 81 case 4: NewICmpPred = Sign ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; break; in getICmpValue()
|
D | SimplifyIndVar.cpp | 289 SE->isKnownPredicate(IsSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT, in eliminateIVRemainder() 299 ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT, in eliminateIVRemainder()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/ |
D | ARMLegalizerInfo.cpp | 260 FCmp32Libcalls[CmpInst::FCMP_OLT] = {{RTLIB::OLT_F32, CmpInst::ICMP_SLT}}; in setFCmpLibcallsGNU() 265 FCmp32Libcalls[CmpInst::FCMP_ULT] = {{RTLIB::OGE_F32, CmpInst::ICMP_SLT}}; in setFCmpLibcallsGNU() 269 {RTLIB::OLT_F32, CmpInst::ICMP_SLT}}; in setFCmpLibcallsGNU() 278 FCmp64Libcalls[CmpInst::FCMP_OLT] = {{RTLIB::OLT_F64, CmpInst::ICMP_SLT}}; in setFCmpLibcallsGNU() 283 FCmp64Libcalls[CmpInst::FCMP_ULT] = {{RTLIB::OGE_F64, CmpInst::ICMP_SLT}}; in setFCmpLibcallsGNU() 287 {RTLIB::OLT_F64, CmpInst::ICMP_SLT}}; in setFCmpLibcallsGNU()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 79 case ICmpInst::ICMP_SLT: // True if LHS s< 0 in isSignBitCheck() 113 if (Pred == ICmpInst::ICMP_SLT) { in isSignTest() 1114 if (Pred == ICmpInst::ICMP_SLT || Pred == ICmpInst::ICMP_SLE) in foldICmpAddOpConst() 1126 return new ICmpInst(ICmpInst::ICMP_SLT, X, ConstantExpr::getSub(SMax, C)); in foldICmpAddOpConst() 1427 if (Pred == ICmpInst::ICMP_SLT && match(X, m_Signum(m_Value(V)))) in foldICmpTruncConstant() 1428 return new ICmpInst(ICmpInst::ICMP_SLT, V, in foldICmpTruncConstant() 1480 return new ICmpInst(ICmpInst::ICMP_SLT, X, in foldICmpXorConstant() 1722 : CmpInst::ICMP_SLT; in foldICmpAndConstant() 1737 if (Pred == ICmpInst::ICMP_SLT && match(Or, m_Signum(m_Value(V)))) in foldICmpOrConstant() 1738 return new ICmpInst(ICmpInst::ICMP_SLT, V, in foldICmpOrConstant() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 98 case ICmpInst::ICMP_SLT: return 4; // 100 in getICmpCode() 151 case 4: Pred = Sign ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; break; in getICmpValue() 351 ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT); in InsertRangeTest() 761 if (LHSCC == ICmpInst::ICMP_SLT && LHSCst->isZero()) { in FoldAndOfICmps() 864 case ICmpInst::ICMP_SLT: // (X == 13 & X < 15) -> X == 13 in FoldAndOfICmps() 874 case ICmpInst::ICMP_SLT: in FoldAndOfICmps() 902 case ICmpInst::ICMP_SLT: // (X u< 13 & X s< 15) -> no change in FoldAndOfICmps() 906 case ICmpInst::ICMP_SLT: in FoldAndOfICmps() 912 case ICmpInst::ICMP_SLT: // (X s< 13 & X s< 15) -> X < 13 in FoldAndOfICmps() 932 case ICmpInst::ICMP_SLT: // (X u> 13 & X s< 15) -> no change in FoldAndOfICmps() [all …]
|
D | InstCombineCompares.cpp | 119 case ICmpInst::ICMP_SLT: // True if LHS s< 0 in isSignBitCheck() 728 if (Pred == ICmpInst::ICMP_SLT || Pred == ICmpInst::ICMP_SLE) in FoldICmpAddOpCst() 740 return new ICmpInst(ICmpInst::ICMP_SLT, X, ConstantExpr::getSub(SMax, C)); in FoldICmpAddOpCst() 867 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SLT : in FoldICmpDivCst() 875 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SLT : in FoldICmpDivCst() 883 case ICmpInst::ICMP_SLT: in FoldICmpDivCst() 1023 if ((ICI.getPredicate() == ICmpInst::ICMP_SLT && RHSV == 0) || in visitICmpInstWithInstAndIntCst() 1045 return new ICmpInst(ICmpInst::ICMP_SLT, CompareVal, in visitICmpInstWithInstAndIntCst() 1343 return new ICmpInst(ICmpInst::ICMP_SLT, LHSI->getOperand(0), in visitICmpInstWithInstAndIntCst() 1465 ICmpInst::ICMP_SLT : ICmpInst::ICMP_SGE; in visitICmpInstWithInstAndIntCst() [all …]
|
D | InstCombineSelect.cpp | 46 case ICmpInst::ICMP_SLT: in MatchSelectPattern() 62 case ICmpInst::ICMP_SLT: in MatchSelectPattern() 358 if ((Pred == ICmpInst::ICMP_SLT || Pred == ICmpInst::ICMP_ULT) in visitSelectInstWithICmp() 359 && CI->isMinValue(Pred == ICmpInst::ICMP_SLT)) in visitSelectInstWithICmp() 368 case ICmpInst::ICMP_SLT: in visitSelectInstWithICmp() 459 } else if (Pred == ICmpInst::ICMP_SLT && Cmp->isNullValue()) { in visitSelectInstWithICmp()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 132 case ICmpInst::ICMP_SLT: // True if LHS s< 0 in isSignBitCheck() 165 if (Pred == ICmpInst::ICMP_SLT) { in isSignTest() 1169 if (Pred == ICmpInst::ICMP_SLT || Pred == ICmpInst::ICMP_SLE) in FoldICmpAddOpCst() 1181 return new ICmpInst(ICmpInst::ICMP_SLT, X, ConstantExpr::getSub(SMax, C)); in FoldICmpAddOpCst() 1307 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SLT : in FoldICmpDivCst() 1315 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SLT : in FoldICmpDivCst() 1323 case ICmpInst::ICMP_SLT: in FoldICmpDivCst() 1548 if (ICI.getPredicate() == ICmpInst::ICMP_SLT && in visitICmpInstWithInstAndIntCst() 1550 return new ICmpInst(ICmpInst::ICMP_SLT, V, in visitICmpInstWithInstAndIntCst() 1576 if ((ICI.getPredicate() == ICmpInst::ICMP_SLT && RHSV == 0) || in visitICmpInstWithInstAndIntCst() [all …]
|
D | InstCombineAndOrXor.cpp | 303 ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT); in InsertRangeTest() 539 case ICmpInst::ICMP_SLT: in decomposeBitTestICmp() 850 case ICmpInst::ICMP_SLT: NewPred = ICmpInst::ICMP_ULT; break; in simplifyRangeCheck() 994 case ICmpInst::ICMP_SLT: // (X == 13 & X < 15) -> X == 13 in FoldAndOfICmps() 1006 case ICmpInst::ICMP_SLT: in FoldAndOfICmps() 1039 case ICmpInst::ICMP_SLT: // (X u< 13 & X s< 15) -> no change in FoldAndOfICmps() 1043 case ICmpInst::ICMP_SLT: in FoldAndOfICmps() 1049 case ICmpInst::ICMP_SLT: // (X s< 13 & X s< 15) -> X < 13 in FoldAndOfICmps() 1069 case ICmpInst::ICMP_SLT: // (X u> 13 & X s< 15) -> no change in FoldAndOfICmps() 1085 case ICmpInst::ICMP_SLT: // (X s> 13 & X s< 15) -> (X-14) s< 1 in FoldAndOfICmps() [all …]
|
D | InstCombineSelect.cpp | 48 return ICmpInst::ICMP_SLT; in getCmpPredicateForMinMax() 432 case ICmpInst::ICMP_SLT: in visitSelectInstWithICmp() 523 } else if (Pred == ICmpInst::ICMP_SLT && Cmp->isNullValue()) { in visitSelectInstWithICmp() 568 } else if (Pred == ICmpInst::ICMP_SLT && match(CmpRHS, m_Zero())) { in visitSelectInstWithICmp()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | InductiveRangeCheckElimination.cpp | 338 case ICmpInst::ICMP_SLT: in parseRangeCheckICmp() 697 auto Predicate = Signed ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in CannotBeMaxInLoop() 710 if (Pred != ICmpInst::ICMP_SLT && Pred != ICmpInst::ICMP_SGT && in isSafeDecreasingBound() 760 if (Pred != ICmpInst::ICMP_SLT && Pred != ICmpInst::ICMP_SGT && in isSafeIncreasingBound() 779 IsSigned ? CmpInst::ICMP_SLT : CmpInst::ICMP_ULT; in isSafeIncreasingBound() 820 SE.isLoopEntryGuardedByCond(L, ICmpInst::ICMP_SLT, BoundSCEV, Zero); in isKnownNegativeInLoop() 972 Pred = ICmpInst::ICMP_SLT; in parseLoopStructure() 994 bool LTPred = (Pred == ICmpInst::ICMP_SLT || Pred == ICmpInst::ICMP_ULT); in parseLoopStructure() 1050 Pred = ICmpInst::ICMP_SLT; in parseLoopStructure() 1057 bool LTPred = (Pred == ICmpInst::ICMP_SLT || Pred == ICmpInst::ICMP_ULT); in parseLoopStructure() [all …]
|
/external/swiftshader/third_party/subzero/pnacl-llvm/ |
D | NaClBitcodeDecoders.cpp | 217 case naclbitc::ICMP_SLT: in DecodeIcmpPredicate() 218 LLVMPredicate = CmpInst::ICMP_SLT; in DecodeIcmpPredicate()
|
/external/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/ |
D | NaClLLVMBitCodes.h | 302 ICMP_SLT = 40, ///< signed less than enumerator
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | ConstantFold.cpp | 1464 pred = isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in evaluateICmpRelation() 1605 return isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in evaluateICmpRelation() 1661 case -1: return isSigned ? ICmpInst::ICMP_SLT:ICmpInst::ICMP_ULT; in evaluateICmpRelation() 1679 return isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in evaluateICmpRelation() 1780 case ICmpInst::ICMP_SLT: return ConstantInt::get(ResultTy, V1.slt(V2)); in ConstantFoldCompareInstruction() 1932 case ICmpInst::ICMP_SLT: in ConstantFoldCompareInstruction() 1934 case ICmpInst::ICMP_SLT: case ICmpInst::ICMP_NE: case ICmpInst::ICMP_SLE: in ConstantFoldCompareInstruction() 1952 case ICmpInst::ICMP_SLT: case ICmpInst::ICMP_EQ: case ICmpInst::ICMP_SLE: in ConstantFoldCompareInstruction() 1962 if (pred == ICmpInst::ICMP_SLT || pred == ICmpInst::ICMP_SLE) Result = 1; in ConstantFoldCompareInstruction() 1969 if (pred == ICmpInst::ICMP_SLT) Result = 0; in ConstantFoldCompareInstruction()
|
D | Instructions.cpp | 3257 case ICMP_SLT: return ICMP_SGE; in getInversePredicate() 3258 case ICMP_SGE: return ICMP_SLT; in getInversePredicate() 3303 case ICmpInst::ICMP_SLT: return "slt"; in getPredicateName() 3316 case ICMP_SGT: case ICMP_SLT: case ICMP_SGE: case ICMP_SLE: in getSignedPredicate() 3319 case ICMP_ULT: return ICMP_SLT; in getSignedPredicate() 3332 case ICMP_SLT: return ICMP_ULT; in getUnsignedPredicate() 3342 case ICMP_SLT: return ICMP_SLE; in getFlippedStrictnessPredicate() 3344 case ICMP_SLE: return ICMP_SLT; in getFlippedStrictnessPredicate() 3366 case ICMP_SGT: return ICMP_SLT; in getSwappedPredicate() 3367 case ICMP_SLT: return ICMP_SGT; in getSwappedPredicate() [all …]
|
/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 1448 pred = isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in evaluateICmpRelation() 1585 return isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in evaluateICmpRelation() 1641 case -1: return isSigned ? ICmpInst::ICMP_SLT:ICmpInst::ICMP_ULT; in evaluateICmpRelation() 1659 return isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in evaluateICmpRelation() 1755 case ICmpInst::ICMP_SLT: return ConstantInt::get(ResultTy, V1.slt(V2)); in ConstantFoldCompareInstruction() 1907 case ICmpInst::ICMP_SLT: in ConstantFoldCompareInstruction() 1909 case ICmpInst::ICMP_SLT: case ICmpInst::ICMP_NE: case ICmpInst::ICMP_SLE: in ConstantFoldCompareInstruction() 1927 case ICmpInst::ICMP_SLT: case ICmpInst::ICMP_EQ: case ICmpInst::ICMP_SLE: in ConstantFoldCompareInstruction() 1937 if (pred == ICmpInst::ICMP_SLT || pred == ICmpInst::ICMP_SLE) Result = 1; in ConstantFoldCompareInstruction() 1944 if (pred == ICmpInst::ICMP_SLT) Result = 0; in ConstantFoldCompareInstruction()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | SimplifyIndVar.cpp | 208 SE->isKnownPredicate(IsSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT, in eliminateIVRemainder() 219 ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT, in eliminateIVRemainder()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | BranchProbabilityInfo.cpp | 349 case CmpInst::ICMP_SLT: in calcZeroHeuristics() 360 } else if (CV->isOne() && CI->getPredicate() == CmpInst::ICMP_SLT) { in calcZeroHeuristics()
|
D | InstructionSimplify.cpp | 1470 case ICmpInst::ICMP_SLT: in SimplifyICmpInst() 1514 case ICmpInst::ICMP_SLT: in SimplifyICmpInst() 1687 case ICmpInst::ICMP_SLT: in SimplifyICmpInst() 1740 case ICmpInst::ICMP_SLT: in SimplifyICmpInst() 1752 if (Value *V = SimplifyICmpInst(ICmpInst::ICMP_SLT, SrcOp, in SimplifyICmpInst() 1833 case ICmpInst::ICMP_SLT: in SimplifyICmpInst() 1860 case ICmpInst::ICMP_SLT: in SimplifyICmpInst() 1973 case CmpInst::ICMP_SLT: in SimplifyICmpInst() 2058 if (Pred == CmpInst::ICMP_SLT) in SimplifyICmpInst()
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | ConstantFold.cpp | 1617 pred = isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in evaluateICmpRelation() 1752 return isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in evaluateICmpRelation() 1802 case -1: return isSigned ? ICmpInst::ICMP_SLT:ICmpInst::ICMP_ULT; in evaluateICmpRelation() 1820 return isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in evaluateICmpRelation() 1912 case ICmpInst::ICMP_SLT: return ConstantInt::get(ResultTy, V1.slt(V2)); in ConstantFoldCompareInstruction() 2059 case ICmpInst::ICMP_SLT: in ConstantFoldCompareInstruction() 2061 case ICmpInst::ICMP_SLT: case ICmpInst::ICMP_NE: case ICmpInst::ICMP_SLE: in ConstantFoldCompareInstruction() 2079 case ICmpInst::ICMP_SLT: case ICmpInst::ICMP_EQ: case ICmpInst::ICMP_SLE: in ConstantFoldCompareInstruction() 2089 if (pred == ICmpInst::ICMP_SLT || pred == ICmpInst::ICMP_SLE) Result = 1; in ConstantFoldCompareInstruction() 2096 if (pred == ICmpInst::ICMP_SLT) Result = 0; in ConstantFoldCompareInstruction()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 1539 if (Pred0 == ICmpInst::ICMP_SLT && Pred1 == ICmpInst::ICMP_SGT && isNSW) in SimplifyAndOfICmps() 2217 case ICmpInst::ICMP_SLT: in SimplifyICmpInst() 2254 case ICmpInst::ICMP_SLT: in SimplifyICmpInst() 2525 case ICmpInst::ICMP_SLT: in SimplifyICmpInst() 2576 case ICmpInst::ICMP_SLT: in SimplifyICmpInst() 2588 if (Value *V = SimplifyICmpInst(ICmpInst::ICMP_SLT, SrcOp, in SimplifyICmpInst() 2688 if (Pred == ICmpInst::ICMP_SLT || Pred == ICmpInst::ICMP_SGE) { in SimplifyICmpInst() 2696 return Pred == ICmpInst::ICMP_SLT ? getTrue(ITy) : getFalse(ITy); in SimplifyICmpInst() 2698 return Pred == ICmpInst::ICMP_SLT ? getFalse(ITy) : getTrue(ITy); in SimplifyICmpInst() 2744 if (Pred == ICmpInst::ICMP_SLT) in SimplifyICmpInst() [all …]
|
D | BranchProbabilityInfo.cpp | 437 case CmpInst::ICMP_SLT: in calcZeroHeuristics() 448 } else if (CV->isOne() && CI->getPredicate() == CmpInst::ICMP_SLT) { in calcZeroHeuristics()
|