| /freebsd-13.1/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 100 APInt SMax(CR.getSignedMax()); in makeAllowedICmpRegion() local 101 if (SMax.isMinSignedValue()) in makeAllowedICmpRegion() 255 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() local 258 SMax.isStrictlyPositive() ? SignedMinVal - SMax : SignedMinVal); in makeGuaranteedNoWrapRegion() 268 SMax.isStrictlyPositive() ? SignedMinVal + SMax : SignedMinVal, in makeGuaranteedNoWrapRegion() 678 return ConstantRange(std::move(SMin), std::move(SMax)); in castOp() 1549 APInt SMin = getSignedMin(), SMax = getSignedMax(); in abs() local 1554 if (SMax.isMinSignedValue()) in abs() 1564 if (SMax.isNegative()) in abs() 1565 return ConstantRange(-SMax, -SMin + 1); in abs() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | IVDescriptors.h | 46 SMax, ///< Signed integer max implemented in terms of select(cmp()). enumerator 210 Kind == RecurKind::SMin || Kind == RecurKind::SMax; in isIntMinMaxRecurrenceKind()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | IVDescriptors.cpp | 61 case RecurKind::SMax: in isIntegerRecurrenceKind() 533 return InstDesc(I, RecurKind::SMax); in isMinMaxSelectCmpPattern() 681 if (AddReductionVar(Phi, RecurKind::SMax, TheLoop, FMF, RedDes, DB, AC, DT)) { in isReductionPHI() 853 case RecurKind::SMax: in getRecurrenceIdentity() 881 case RecurKind::SMax: in getOpcode()
|
| H A D | ScalarEvolution.cpp | 6042 if (const SCEVSMaxExpr *SMax = dyn_cast<SCEVSMaxExpr>(S)) { in getRangeRef() local 6043 ConstantRange X = getRangeRef(SMax->getOperand(0), SignHint); in getRangeRef() 6044 for (unsigned i = 1, e = SMax->getNumOperands(); i != e; ++i) in getRangeRef() 6045 X = X.smax(getRangeRef(SMax->getOperand(i), SignHint)); in getRangeRef() 6046 return setRange(SMax, SignHint, in getRangeRef()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVTargetTransformInfo.h | 170 case RecurKind::SMax: in isLegalToVectorizeReduction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ExpandReductions.cpp | 63 return RecurKind::SMax; in getRK()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LoopUtils.cpp | 870 case RecurKind::SMax: in createMinMaxOp() 963 RdxFlags.IsMaxOp = RdxKind == RecurKind::SMax || RdxKind == RecurKind::UMax || in createSimpleTargetReduction() 965 RdxFlags.IsSigned = RdxKind == RecurKind::SMax || RdxKind == RecurKind::SMin; in createSimpleTargetReduction() 984 case RecurKind::SMax: in createSimpleTargetReduction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCompares.cpp | 1111 APInt SMax = APInt::getSignedMaxValue(C.getBitWidth()); in foldICmpAddOpConst() local 1121 ConstantInt::get(X->getType(), SMax - C)); in foldICmpAddOpConst() 1132 ConstantInt::get(X->getType(), SMax - (C - 1))); in foldICmpAddOpConst() 2689 const APInt SMax = APInt::getSignedMaxValue(Ty->getScalarSizeInBits()); in foldICmpAddConstant() local 2694 if (Pred == CmpInst::ICMP_UGT && C == *C2 + SMax) in foldICmpAddConstant() 2703 return new ICmpInst(ICmpInst::ICMP_ULT, X, ConstantInt::get(Ty, SMax - C)); in foldICmpAddConstant() 2707 return new ICmpInst(ICmpInst::ICMP_UGT, X, ConstantInt::get(Ty, C ^ SMax)); in foldICmpAddConstant() 6029 APFloat SMax(RHS.getSemantics()); in foldFCmpIntToFPConst() local 6030 SMax.convertFromAPInt(APInt::getSignedMaxValue(IntWidth), true, in foldFCmpIntToFPConst() 6032 if (SMax < RHS) { // smax < 13123.0 in foldFCmpIntToFPConst()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | SLPVectorizer.cpp | 7403 case RecurKind::SMax: in createOp() 7496 return RecurKind::SMax; in getRdxKind() 7548 return RecurKind::SMax; in getRdxKind() 7993 case RecurKind::SMax: in getReductionCost()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.cpp | 1890 case RecurKind::SMax: in isLegalToVectorizeReduction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 45448 if (SDValue SMax = MatchMinMax(In, ISD::SMAX, C1)) in detectUSatPattern() local 45449 if (SDValue SMin = MatchMinMax(SMax, ISD::SMIN, C2)) in detectUSatPattern() 45491 if (SDValue SMax = MatchMinMax(SMin, ISD::SMAX, SignedMin)) in detectSSatPattern() local 45492 return SMax; in detectSSatPattern() 45494 if (SDValue SMax = MatchMinMax(In, ISD::SMAX, SignedMin)) in detectSSatPattern() local 45495 if (SDValue SMin = MatchMinMax(SMax, ISD::SMIN, SignedMax)) in detectSSatPattern()
|