Lines Matching refs:Depth

167                              unsigned Depth, const Query &Q);
170 const DataLayout &DL, unsigned Depth, in computeKnownBits() argument
174 ::computeKnownBits(V, Known, Depth, in computeKnownBits()
178 static KnownBits computeKnownBits(const Value *V, unsigned Depth,
182 unsigned Depth, AssumptionCache *AC, in computeKnownBits() argument
188 V, Depth, Query(DL, AC, safeCxtI(V, CxtI), DT, UseInstrInfo, ORE)); in computeKnownBits()
227 static bool isKnownToBeAPowerOfTwo(const Value *V, bool OrZero, unsigned Depth,
231 bool OrZero, unsigned Depth, in isKnownToBeAPowerOfTwo() argument
235 V, OrZero, Depth, Query(DL, AC, safeCxtI(V, CxtI), DT, UseInstrInfo)); in isKnownToBeAPowerOfTwo()
238 static bool isKnownNonZero(const Value *V, unsigned Depth, const Query &Q);
240 bool llvm::isKnownNonZero(const Value *V, const DataLayout &DL, unsigned Depth, in isKnownNonZero() argument
243 return ::isKnownNonZero(V, Depth, in isKnownNonZero()
248 unsigned Depth, AssumptionCache *AC, in isKnownNonNegative() argument
252 computeKnownBits(V, DL, Depth, AC, CxtI, DT, nullptr, UseInstrInfo); in isKnownNonNegative()
256 bool llvm::isKnownPositive(const Value *V, const DataLayout &DL, unsigned Depth, in isKnownPositive() argument
264 return isKnownNonNegative(V, DL, Depth, AC, CxtI, DT, UseInstrInfo) && in isKnownPositive()
265 isKnownNonZero(V, DL, Depth, AC, CxtI, DT, UseInstrInfo); in isKnownPositive()
268 bool llvm::isKnownNegative(const Value *V, const DataLayout &DL, unsigned Depth, in isKnownNegative() argument
272 computeKnownBits(V, DL, Depth, AC, CxtI, DT, nullptr, UseInstrInfo); in isKnownNegative()
287 static bool MaskedValueIsZero(const Value *V, const APInt &Mask, unsigned Depth,
291 const DataLayout &DL, unsigned Depth, in MaskedValueIsZero() argument
295 V, Mask, Depth, Query(DL, AC, safeCxtI(V, CxtI), DT, UseInstrInfo)); in MaskedValueIsZero()
298 static unsigned ComputeNumSignBits(const Value *V, unsigned Depth,
302 unsigned Depth, AssumptionCache *AC, in ComputeNumSignBits() argument
306 V, Depth, Query(DL, AC, safeCxtI(V, CxtI), DT, UseInstrInfo)); in ComputeNumSignBits()
312 unsigned Depth, const Query &Q) { in computeKnownBitsAddSub() argument
318 computeKnownBits(Op0, LHSKnown, Depth + 1, Q); in computeKnownBitsAddSub()
319 computeKnownBits(Op1, Known2, Depth + 1, Q); in computeKnownBitsAddSub()
326 unsigned Depth, const Query &Q) { in computeKnownBitsMul() argument
328 computeKnownBits(Op1, Known, Depth + 1, Q); in computeKnownBitsMul()
329 computeKnownBits(Op0, Known2, Depth + 1, Q); in computeKnownBitsMul()
350 isKnownNonZero(Op0, Depth, Q)) || in computeKnownBitsMul()
352 isKnownNonZero(Op1, Depth, Q)); in computeKnownBitsMul()
575 unsigned Depth, const Query &Q) { in computeKnownBitsFromAssume() argument
617 if (Depth == MaxDepth) in computeKnownBitsFromAssume()
631 computeKnownBits(A, RHSKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
640 computeKnownBits(A, RHSKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
642 computeKnownBits(B, MaskKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
654 computeKnownBits(A, RHSKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
656 computeKnownBits(B, MaskKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
668 computeKnownBits(A, RHSKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
670 computeKnownBits(B, BKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
682 computeKnownBits(A, RHSKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
684 computeKnownBits(B, BKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
696 computeKnownBits(A, RHSKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
698 computeKnownBits(B, BKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
713 computeKnownBits(A, RHSKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
715 computeKnownBits(B, BKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
731 computeKnownBits(A, RHSKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
745 computeKnownBits(A, RHSKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
760 computeKnownBits(A, RHSKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
772 computeKnownBits(A, RHSKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
782 computeKnownBits(A, RHSKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
793 computeKnownBits(A, RHSKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
804 computeKnownBits(A, RHSKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
815 computeKnownBits(A, RHSKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
826 computeKnownBits(A, RHSKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
835 computeKnownBits(A, RHSKnown, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume()
847 if (isKnownToBeAPowerOfTwo(A, false, Depth + 1, Query(Q, I))) in computeKnownBitsFromAssume()
884 unsigned Depth, const Query &Q, in computeKnownBitsFromShiftOperator() argument
892 computeKnownBits(I->getOperand(0), Known, Depth + 1, Q); in computeKnownBitsFromShiftOperator()
904 computeKnownBits(I->getOperand(1), Known, Depth + 1, Q); in computeKnownBitsFromShiftOperator()
932 ShifterOperandIsNonZero = isKnownNonZero(I->getOperand(1), Depth + 1, Q); in computeKnownBitsFromShiftOperator()
937 computeKnownBits(I->getOperand(0), Known2, Depth + 1, Q); in computeKnownBitsFromShiftOperator()
954 isKnownNonZero(I->getOperand(1), Depth + 1, Q); in computeKnownBitsFromShiftOperator()
970 unsigned Depth, const Query &Q) { in computeKnownBitsFromOperator() argument
983 computeKnownBits(I->getOperand(1), Known, Depth + 1, Q); in computeKnownBitsFromOperator()
984 computeKnownBits(I->getOperand(0), Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1000 computeKnownBits(Y, Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1007 computeKnownBits(I->getOperand(1), Known, Depth + 1, Q); in computeKnownBitsFromOperator()
1008 computeKnownBits(I->getOperand(0), Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1016 computeKnownBits(I->getOperand(1), Known, Depth + 1, Q); in computeKnownBitsFromOperator()
1017 computeKnownBits(I->getOperand(0), Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1029 Known2, Depth, Q); in computeKnownBitsFromOperator()
1036 computeKnownBits(I->getOperand(0), Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1040 computeKnownBits(I->getOperand(1), Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1052 computeKnownBits(RHS, Known, Depth + 1, Q); in computeKnownBitsFromOperator()
1053 computeKnownBits(LHS, Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1055 computeKnownBits(I->getOperand(2), Known, Depth + 1, Q); in computeKnownBitsFromOperator()
1056 computeKnownBits(I->getOperand(1), Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1133 computeKnownBits(I->getOperand(0), Known, Depth + 1, Q); in computeKnownBitsFromOperator()
1146 computeKnownBits(I->getOperand(0), Known, Depth + 1, Q); in computeKnownBitsFromOperator()
1156 computeKnownBits(I->getOperand(0), Known, Depth + 1, Q); in computeKnownBitsFromOperator()
1182 computeKnownBitsFromShiftOperator(I, Known, Known2, Depth, Q, KZF, KOF); in computeKnownBitsFromOperator()
1198 computeKnownBitsFromShiftOperator(I, Known, Known2, Depth, Q, KZF, KOF); in computeKnownBitsFromOperator()
1211 computeKnownBitsFromShiftOperator(I, Known, Known2, Depth, Q, KZF, KOF); in computeKnownBitsFromOperator()
1217 Known, Known2, Depth, Q); in computeKnownBitsFromOperator()
1223 Known, Known2, Depth, Q); in computeKnownBitsFromOperator()
1231 computeKnownBits(I->getOperand(0), Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1254 computeKnownBits(I->getOperand(0), Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1265 computeKnownBits(I->getOperand(0), Known, Depth + 1, Q); in computeKnownBitsFromOperator()
1274 computeKnownBits(I->getOperand(0), Known, Depth + 1, Q); in computeKnownBitsFromOperator()
1275 computeKnownBits(I->getOperand(1), Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1298 computeKnownBits(I->getOperand(0), LocalKnown, Depth + 1, Q); in computeKnownBitsFromOperator()
1330 computeKnownBits(Index, LocalKnown, Depth + 1, Q); in computeKnownBitsFromOperator()
1372 computeKnownBits(R, Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1376 computeKnownBits(L, Known3, Depth + 1, Q); in computeKnownBitsFromOperator()
1425 if (Depth < MaxDepth - 1 && !Known.Zero && !Known.One) { in computeKnownBitsFromOperator()
1459 computeKnownBits(RV, Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1467 computeKnownBits(I->getOperand(0), Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1472 computeKnownBits(I->getOperand(0), Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1477 computeKnownBits(I->getOperand(0), Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1488 computeKnownBits(I->getOperand(0), Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1499 computeKnownBits(I->getOperand(0), Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1521 computeKnownBits(I->getOperand(0), Known2, Depth + 1, Q); in computeKnownBitsFromOperator()
1522 computeKnownBits(I->getOperand(1), Known3, Depth + 1, Q); in computeKnownBitsFromOperator()
1541 computeKnownBits(I->getOperand(0), Known, Depth + 1, Q); in computeKnownBitsFromOperator()
1554 Depth, Q); in computeKnownBitsFromOperator()
1560 Depth, Q); in computeKnownBitsFromOperator()
1565 Known, Known2, Depth, Q); in computeKnownBitsFromOperator()
1575 KnownBits computeKnownBits(const Value *V, unsigned Depth, const Query &Q) { in computeKnownBits() argument
1577 computeKnownBits(V, Known, Depth, Q); in computeKnownBits()
1596 void computeKnownBits(const Value *V, KnownBits &Known, unsigned Depth, in computeKnownBits() argument
1599 assert(Depth <= MaxDepth && "Limit Search Depth"); in computeKnownBits()
1670 if (Depth == MaxDepth) in computeKnownBits()
1677 computeKnownBits(GA->getAliasee(), Known, Depth + 1, Q); in computeKnownBits()
1682 computeKnownBitsFromOperator(I, Known, Depth, Q); in computeKnownBits()
1695 computeKnownBitsFromAssume(V, Known, Depth, Q); in computeKnownBits()
1704 bool isKnownToBeAPowerOfTwo(const Value *V, bool OrZero, unsigned Depth, in isKnownToBeAPowerOfTwo() argument
1706 assert(Depth <= MaxDepth && "Limit Search Depth"); in isKnownToBeAPowerOfTwo()
1725 if (Depth++ == MaxDepth) in isKnownToBeAPowerOfTwo()
1733 return isKnownToBeAPowerOfTwo(X, /*OrZero*/ true, Depth, Q); in isKnownToBeAPowerOfTwo()
1736 return isKnownToBeAPowerOfTwo(ZI->getOperand(0), OrZero, Depth, Q); in isKnownToBeAPowerOfTwo()
1739 return isKnownToBeAPowerOfTwo(SI->getTrueValue(), OrZero, Depth, Q) && in isKnownToBeAPowerOfTwo()
1740 isKnownToBeAPowerOfTwo(SI->getFalseValue(), OrZero, Depth, Q); in isKnownToBeAPowerOfTwo()
1744 if (isKnownToBeAPowerOfTwo(X, /*OrZero*/ true, Depth, Q) || in isKnownToBeAPowerOfTwo()
1745 isKnownToBeAPowerOfTwo(Y, /*OrZero*/ true, Depth, Q)) in isKnownToBeAPowerOfTwo()
1761 if (isKnownToBeAPowerOfTwo(Y, OrZero, Depth, Q)) in isKnownToBeAPowerOfTwo()
1765 if (isKnownToBeAPowerOfTwo(X, OrZero, Depth, Q)) in isKnownToBeAPowerOfTwo()
1770 computeKnownBits(X, LHSBits, Depth, Q); in isKnownToBeAPowerOfTwo()
1773 computeKnownBits(Y, RHSBits, Depth, Q); in isKnownToBeAPowerOfTwo()
1791 Depth, Q); in isKnownToBeAPowerOfTwo()
1803 static bool isGEPKnownNonNull(const GEPOperator *GEP, unsigned Depth, in isGEPKnownNonNull() argument
1818 if (isKnownNonZero(GEP->getPointerOperand(), Depth, Q)) in isGEPKnownNonNull()
1854 if (Depth++ >= MaxDepth) in isGEPKnownNonNull()
1857 if (isKnownNonZero(GTI.getOperand(), Depth, Q)) in isGEPKnownNonNull()
1962 bool isKnownNonZero(const Value *V, unsigned Depth, const Query &Q) { in isKnownNonZero() argument
2007 if (Depth++ >= MaxDepth) in isKnownNonZero()
2030 return isKnownNonZero(RP, Depth, Q); in isKnownNonZero()
2041 if (isGEPKnownNonNull(GEP, Depth, Q)) in isKnownNonZero()
2050 return isKnownNonZero(X, Depth, Q) || isKnownNonZero(Y, Depth, Q); in isKnownNonZero()
2054 return isKnownNonZero(cast<Instruction>(V)->getOperand(0), Depth, Q); in isKnownNonZero()
2062 return isKnownNonZero(X, Depth, Q); in isKnownNonZero()
2065 computeKnownBits(X, Known, Depth, Q); in isKnownNonZero()
2075 return isKnownNonZero(X, Depth, Q); in isKnownNonZero()
2077 KnownBits Known = computeKnownBits(X, Depth, Q); in isKnownNonZero()
2091 return isKnownNonZero(X, Depth, Q); in isKnownNonZero()
2096 return isKnownNonZero(X, Depth, Q); in isKnownNonZero()
2100 KnownBits XKnown = computeKnownBits(X, Depth, Q); in isKnownNonZero()
2101 KnownBits YKnown = computeKnownBits(Y, Depth, Q); in isKnownNonZero()
2106 if (isKnownNonZero(X, Depth, Q) || isKnownNonZero(Y, Depth, Q)) in isKnownNonZero()
2125 isKnownToBeAPowerOfTwo(Y, /*OrZero*/ false, Depth, Q)) in isKnownNonZero()
2128 isKnownToBeAPowerOfTwo(X, /*OrZero*/ false, Depth, Q)) in isKnownNonZero()
2137 isKnownNonZero(X, Depth, Q) && isKnownNonZero(Y, Depth, Q)) in isKnownNonZero()
2142 if (isKnownNonZero(SI->getTrueValue(), Depth, Q) && in isKnownNonZero()
2143 isKnownNonZero(SI->getFalseValue(), Depth, Q)) in isKnownNonZero()
2175 computeKnownBits(V, Known, Depth, Q); in isKnownNonZero()
2226 bool MaskedValueIsZero(const Value *V, const APInt &Mask, unsigned Depth, in MaskedValueIsZero() argument
2229 computeKnownBits(V, Known, Depth, Q); in MaskedValueIsZero()
2287 static unsigned ComputeNumSignBitsImpl(const Value *V, unsigned Depth,
2290 static unsigned ComputeNumSignBits(const Value *V, unsigned Depth, in ComputeNumSignBits() argument
2292 unsigned Result = ComputeNumSignBitsImpl(V, Depth, Q); in ComputeNumSignBits()
2303 static unsigned ComputeNumSignBitsImpl(const Value *V, unsigned Depth, in ComputeNumSignBitsImpl() argument
2305 assert(Depth <= MaxDepth && "Limit Search Depth"); in ComputeNumSignBitsImpl()
2322 if (Depth == MaxDepth) in ComputeNumSignBitsImpl()
2330 return ComputeNumSignBits(U->getOperand(0), Depth + 1, Q) + Tmp; in ComputeNumSignBitsImpl()
2342 unsigned NumBits = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
2364 ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
2386 Tmp = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
2402 Tmp = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
2414 Tmp = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
2416 Tmp2 = ComputeNumSignBits(U->getOperand(1), Depth + 1, Q); in ComputeNumSignBitsImpl()
2432 Tmp = ComputeNumSignBits(U->getOperand(1), Depth + 1, Q); in ComputeNumSignBitsImpl()
2434 Tmp2 = ComputeNumSignBits(U->getOperand(2), Depth + 1, Q); in ComputeNumSignBitsImpl()
2441 Tmp = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
2448 computeKnownBits(U->getOperand(0), Known, Depth + 1, Q); in ComputeNumSignBitsImpl()
2461 Tmp2 = ComputeNumSignBits(U->getOperand(1), Depth + 1, Q); in ComputeNumSignBitsImpl()
2466 Tmp2 = ComputeNumSignBits(U->getOperand(1), Depth + 1, Q); in ComputeNumSignBitsImpl()
2473 computeKnownBits(U->getOperand(1), Known, Depth + 1, Q); in ComputeNumSignBitsImpl()
2489 Tmp = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
2495 unsigned SignBitsOp0 = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
2497 unsigned SignBitsOp1 = ComputeNumSignBits(U->getOperand(1), Depth + 1, Q); in ComputeNumSignBitsImpl()
2514 Tmp = ComputeNumSignBits(PN->getIncomingValue(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
2518 Tmp, ComputeNumSignBits(PN->getIncomingValue(i), Depth + 1, Q)); in ComputeNumSignBitsImpl()
2533 return ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
2560 Tmp = ComputeNumSignBits(Shuf->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
2562 Tmp2 = ComputeNumSignBits(Shuf->getOperand(1), Depth + 1, Q); in ComputeNumSignBitsImpl()
2583 computeKnownBits(V, Known, Depth, Q); in ComputeNumSignBitsImpl()
2595 bool LookThroughSExt, unsigned Depth) { in ComputeMultiple() argument
2599 assert(Depth <= MaxDepth && "Limit Search Depth"); in ComputeMultiple()
2627 if (Depth == MaxDepth) return false; // Limit search depth. in ComputeMultiple()
2640 LookThroughSExt, Depth+1); in ComputeMultiple()
2658 if (ComputeMultiple(Op0, Base, Mul0, LookThroughSExt, Depth+1)) { in ComputeMultiple()
2682 if (ComputeMultiple(Op1, Base, Mul1, LookThroughSExt, Depth+1)) { in ComputeMultiple()
2825 unsigned Depth) { in CannotBeNegativeZero() argument
2830 if (Depth == MaxDepth) in CannotBeNegativeZero()
2858 return CannotBeNegativeZero(Call->getArgOperand(0), TLI, Depth + 1); in CannotBeNegativeZero()
2874 unsigned Depth) { in cannotBeOrderedLessThanZeroImpl() argument
2903 if (Depth == MaxDepth) in cannotBeOrderedLessThanZeroImpl()
2927 Depth + 1) && in cannotBeOrderedLessThanZeroImpl()
2929 Depth + 1); in cannotBeOrderedLessThanZeroImpl()
2932 Depth + 1) && in cannotBeOrderedLessThanZeroImpl()
2934 Depth + 1); in cannotBeOrderedLessThanZeroImpl()
2939 Depth + 1); in cannotBeOrderedLessThanZeroImpl()
2945 Depth + 1); in cannotBeOrderedLessThanZeroImpl()
2955 SignBitOnly, Depth + 1)) || in cannotBeOrderedLessThanZeroImpl()
2958 SignBitOnly, Depth + 1)); in cannotBeOrderedLessThanZeroImpl()
2962 Depth + 1) || in cannotBeOrderedLessThanZeroImpl()
2964 Depth + 1); in cannotBeOrderedLessThanZeroImpl()
2968 Depth + 1) && in cannotBeOrderedLessThanZeroImpl()
2970 Depth + 1); in cannotBeOrderedLessThanZeroImpl()
3003 Depth + 1); in cannotBeOrderedLessThanZeroImpl()
3011 Depth + 1); in cannotBeOrderedLessThanZeroImpl()
3028 unsigned Depth) { in isKnownNeverNaN() argument
3040 if (Depth == MaxDepth) in isKnownNeverNaN()
3054 return isKnownNeverNaN(Inst->getOperand(1), TLI, Depth + 1) && in isKnownNeverNaN()
3055 isKnownNeverNaN(Inst->getOperand(2), TLI, Depth + 1); in isKnownNeverNaN()
3062 return isKnownNeverNaN(Inst->getOperand(0), TLI, Depth + 1); in isKnownNeverNaN()
3081 return isKnownNeverNaN(II->getArgOperand(0), TLI, Depth + 1); in isKnownNeverNaN()
3083 return isKnownNeverNaN(II->getArgOperand(0), TLI, Depth + 1) && in isKnownNeverNaN()
4610 unsigned Depth) { in matchMinMaxOfMinMax() argument
4615 SelectPatternResult L = matchSelectPattern(TVal, A, B, nullptr, Depth + 1); in matchMinMaxOfMinMax()
4620 SelectPatternResult R = matchSelectPattern(FVal, C, D, nullptr, Depth + 1); in matchMinMaxOfMinMax()
4705 unsigned Depth) { in matchMinMax() argument
4714 SPR = matchMinMaxOfMinMax(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal, Depth); in matchMinMax()
4800 unsigned Depth) { in matchSelectPattern() argument
4961 return matchMinMax(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal, LHS, RHS, Depth); in matchSelectPattern()
5083 unsigned Depth) { in matchSelectPattern() argument
5084 if (Depth >= MaxDepth) in matchSelectPattern()
5115 LHS, RHS, Depth); in matchSelectPattern()
5124 LHS, RHS, Depth); in matchSelectPattern()
5128 LHS, RHS, Depth); in matchSelectPattern()
5158 unsigned Depth) { in isTruePredicate() argument
5195 computeKnownBits(X, Known, DL, Depth + 1, /*AC*/ nullptr, in isTruePredicate()
5219 const DataLayout &DL, unsigned Depth) { in isImpliedCondOperands() argument
5226 if (isTruePredicate(CmpInst::ICMP_SLE, BLHS, ALHS, DL, Depth) && in isImpliedCondOperands()
5227 isTruePredicate(CmpInst::ICMP_SLE, ARHS, BRHS, DL, Depth)) in isImpliedCondOperands()
5233 if (isTruePredicate(CmpInst::ICMP_ULE, BLHS, ALHS, DL, Depth) && in isImpliedCondOperands()
5234 isTruePredicate(CmpInst::ICMP_ULE, ARHS, BRHS, DL, Depth)) in isImpliedCondOperands()
5295 unsigned Depth) { in isImpliedCondICmps() argument
5330 return isImpliedCondOperands(APred, ALHS, ARHS, BLHS, BRHS, DL, Depth); in isImpliedCondICmps()
5340 unsigned Depth) { in isImpliedCondAndOr() argument
5346 assert(Depth <= MaxDepth && "Hit recursion limit"); in isImpliedCondAndOr()
5356 isImpliedCondition(ALHS, RHS, DL, LHSIsTrue, Depth + 1)) in isImpliedCondAndOr()
5359 isImpliedCondition(ARHS, RHS, DL, LHSIsTrue, Depth + 1)) in isImpliedCondAndOr()
5368 unsigned Depth) { in isImpliedCondition() argument
5370 if (Depth == MaxDepth) in isImpliedCondition()
5395 return isImpliedCondICmps(LHSCmp, RHSCmp, DL, LHSIsTrue, Depth); in isImpliedCondition()
5403 return isImpliedCondAndOr(LHSBO, RHSCmp, DL, LHSIsTrue, Depth); in isImpliedCondition()