Home
last modified time | relevance | path

Searched refs:MaxAmt (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp796 Constant *MaxAmt = ConstantInt::get(SrcTy, Width - 1, false); in visitTrunc() local
798 ConstantFoldCompareInstOperands(ICmpInst::ICMP_ULT, C, MaxAmt, DL); in visitTrunc()
799 Constant *ShAmt = ConstantFoldSelectInstruction(Cmp, C, MaxAmt); in visitTrunc()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp3030 const APInt *MinAmt = nullptr, *MaxAmt = nullptr; in getValidShiftAmountRange() local
3036 MinAmt = MaxAmt = nullptr; in getValidShiftAmountRange()
3044 if (!MaxAmt || MaxAmt->ult(ShAmt)) in getValidShiftAmountRange()
3045 MaxAmt = &ShAmt; in getValidShiftAmountRange()
3047 assert(((!MinAmt && !MaxAmt) || (MinAmt && MaxAmt)) && in getValidShiftAmountRange()
3049 if (MinAmt && MaxAmt) in getValidShiftAmountRange()
3050 return ConstantRange(*MinAmt, *MaxAmt + 1); in getValidShiftAmountRange()