Home
last modified time | relevance | path

Searched refs:SMax (Results 1 – 16 of 16) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp119 APInt SMax(CR.getSignedMax()); in makeAllowedICmpRegion() local
120 if (SMax.isMinSignedValue()) in makeAllowedICmpRegion()
311 SMax.isStrictlyPositive() ? SignedMinVal - SMax : SignedMinVal); in makeGuaranteedNoWrapRegion()
321 SMax.isStrictlyPositive() ? SignedMinVal + SMax : SignedMinVal, in makeGuaranteedNoWrapRegion()
755 APInt SMax = APInt::getSignedMaxValue(BW); in castOp() local
758 SMax = SMax.sext(ResultBitWidth); in castOp()
1688 APInt SMin = getSignedMin(), SMax = getSignedMax(); in abs() local
1693 if (SMax.isMinSignedValue()) in abs()
1700 return ConstantRange(SMin, SMax + 1); in abs()
1703 if (SMax.isNegative()) in abs()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DIVDescriptors.h42 SMax, ///< Signed integer max implemented in terms of select(cmp()). enumerator
223 Kind == RecurKind::SMin || Kind == RecurKind::SMax; in isIntMinMaxRecurrenceKind()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DIVDescriptors.cpp49 case RecurKind::SMax: in isIntegerRecurrenceKind()
691 return InstDesc(Kind == RecurKind::SMax, I); in isMinMaxPattern()
877 if (AddReductionVar(Phi, RecurKind::SMax, TheLoop, FMF, RedDes, DB, AC, DT, in isReductionPHI()
1073 case RecurKind::SMax: in getRecurrenceIdentity()
1114 case RecurKind::SMax: in getOpcode()
H A DScalarEvolution.cpp15307 if (auto *SMax = dyn_cast<SCEVSMaxExpr>(FromRewritten)) in applyLoopGuards() local
15308 EnqueueOperands(SMax); in applyLoopGuards()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandReductions.cpp61 return RecurKind::SMax; in getRK()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h287 case RecurKind::SMax: in isLegalToVectorizeReduction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopUtils.cpp930 case RecurKind::SMax: in getMinMaxReductionIntrinsicOp()
953 case RecurKind::SMax: in getMinMaxReductionPredicate()
1114 case RecurKind::SMax: in createSimpleTargetReduction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp934 APInt SMax = APInt::getSignedMaxValue(C.getBitWidth()); in foldICmpAddOpConst() local
944 ConstantInt::get(X->getType(), SMax - C)); in foldICmpAddOpConst()
955 ConstantInt::get(X->getType(), SMax - (C - 1))); in foldICmpAddOpConst()
3005 const APInt SMax = APInt::getSignedMaxValue(Ty->getScalarSizeInBits()); in foldICmpAddConstant() local
3010 if (Pred == CmpInst::ICMP_UGT && C == *C2 + SMax) in foldICmpAddConstant()
3019 return new ICmpInst(ICmpInst::ICMP_ULT, X, ConstantInt::get(Ty, SMax - C)); in foldICmpAddConstant()
3023 return new ICmpInst(ICmpInst::ICMP_UGT, X, ConstantInt::get(Ty, C ^ SMax)); in foldICmpAddConstant()
7344 APFloat SMax(RHS.getSemantics()); in foldFCmpIntToFPConst() local
7345 SMax.convertFromAPInt(APInt::getSignedMaxValue(IntWidth), true, in foldFCmpIntToFPConst()
7347 if (SMax < RHS) { // smax < 13123.0 in foldFCmpIntToFPConst()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVInstrInfo.td692 def OpGroupSMax: OpGroup<"SMax", 271>;
755 def OpGroupNonUniformSMax: OpGroupNUGroup<"SMax", 356>;
H A DSPIRVInstructionSelector.cpp347 return selectExtInst(ResVReg, ResType, I, CL::s_max, GL::SMax); in spvSelect()
H A DSPIRVBuiltins.td388 defm : DemangledExtendedBuiltin<"SMax", GLSL_std_450, 42>;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelDAGToDAG.cpp1910 uint64_t SMax = SKnown.getMaxValue().getZExtValue(); in checkFlatScratchSVSSwizzleBug() local
1911 return (VMax & 3) + (SMax & 3) >= 4; in checkFlatScratchSVSSwizzleBug()
H A DAMDGPUInstructionSelector.cpp4583 uint64_t SMax = SKnown.getMaxValue().getZExtValue(); in checkFlatScratchSVSSwizzleBug() local
4584 return (VMax & 3) + (SMax & 3) >= 4; in checkFlatScratchSVSSwizzleBug()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp14045 case RecurKind::SMax: in createOp()
14138 return RecurKind::SMax; in getRdxKind()
14189 return RecurKind::SMax; in getRdxKind()
15141 case RecurKind::SMax: in getReductionCost()
15208 case RecurKind::SMax: in emitScaleForReusedOps()
15270 case RecurKind::SMax: in emitReusedOps()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp3525 case RecurKind::SMax: in isLegalToVectorizeReduction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp49648 if (SDValue SMax = MatchMinMax(In, ISD::SMAX, C1)) in detectUSatPattern() local
49649 if (SDValue SMin = MatchMinMax(SMax, ISD::SMIN, C2)) in detectUSatPattern()
49691 if (SDValue SMax = MatchMinMax(SMin, ISD::SMAX, SignedMin)) in detectSSatPattern() local
49692 return SMax; in detectSSatPattern()
49694 if (SDValue SMax = MatchMinMax(In, ISD::SMAX, SignedMin)) in detectSSatPattern() local
49695 if (SDValue SMin = MatchMinMax(SMax, ISD::SMIN, SignedMax)) in detectSSatPattern()