Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp131 APInt SMax(CR.getSignedMax()); in makeAllowedICmpRegion() local
132 if (SMax.isMinSignedValue()) in makeAllowedICmpRegion()
134 return ConstantRange(APInt::getSignedMinValue(W), std::move(SMax)); in makeAllowedICmpRegion()
348 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() local
351 SMax.isStrictlyPositive() ? SignedMinVal - SMax : SignedMinVal); in makeGuaranteedNoWrapRegion()
359 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() local
361 SMax.isStrictlyPositive() ? SignedMinVal + SMax : SignedMinVal, in makeGuaranteedNoWrapRegion()
822 APInt SMax = APInt::getSignedMaxValue(BW); in castOp() local
825 SMax = SMax.sext(ResultBitWidth); in castOp()
827 return getNonEmpty(std::move(SMin), std::move(SMax) + 1); in castOp()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DIVDescriptors.h43 SMax, ///< Signed integer max implemented in terms of select(cmp()). enumerator
249 Kind == RecurKind::SMin || Kind == RecurKind::SMax; in isIntMinMaxRecurrenceKind()
287 return Kind == RecurKind::SMax || Kind == RecurKind::SMin || in isSignedRecurrenceKind()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DIVDescriptors.cpp48 case RecurKind::SMax: in isIntegerRecurrenceKind()
816 return InstDesc(Kind == RecurKind::SMax, I); in isMinMaxPattern()
1026 if (AddReductionVar(Phi, RecurKind::SMax, TheLoop, FMF, RedDes, DB, AC, DT, in isReductionPHI()
1224 case RecurKind::SMax: in getOpcode()
H A DScalarEvolution.cpp15725 if (auto *SMax = dyn_cast<SCEVSMaxExpr>(FromRewritten)) in collectFromBlock() local
15726 EnqueueOperands(SMax); in collectFromBlock()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopUtils.cpp932 case RecurKind::SMax: in getReductionIntrinsicID()
1039 case RecurKind::SMax: in getMinMaxReductionIntrinsicOp()
1061 return RecurKind::SMax; in getMinMaxReductionRecurKind()
1087 case RecurKind::SMax: in getMinMaxReductionPredicate()
1309 case RecurKind::SMax: in createSimpleReduction()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h371 case RecurKind::SMax: in isLegalToVectorizeReduction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp963 APInt SMax = APInt::getSignedMaxValue(C.getBitWidth()); in foldICmpAddOpConst() local
973 ConstantInt::get(X->getType(), SMax - C)); in foldICmpAddOpConst()
984 ConstantInt::get(X->getType(), SMax - (C - 1))); in foldICmpAddOpConst()
3221 const APInt SMax = APInt::getSignedMaxValue(Ty->getScalarSizeInBits()); in foldICmpAddConstant() local
3226 if (Pred == CmpInst::ICMP_UGT && C == *C2 + SMax) in foldICmpAddConstant()
3235 return new ICmpInst(ICmpInst::ICMP_ULT, X, ConstantInt::get(Ty, SMax - C)); in foldICmpAddConstant()
3239 return new ICmpInst(ICmpInst::ICMP_UGT, X, ConstantInt::get(Ty, C ^ SMax)); in foldICmpAddConstant()
8049 APFloat SMax(RHS->getSemantics()); in foldFCmpIntToFPConst() local
8050 SMax.convertFromAPInt(APInt::getSignedMaxValue(IntWidth), true, in foldFCmpIntToFPConst()
8052 if (SMax < *RHS) { // smax < 13123.0 in foldFCmpIntToFPConst()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXIL.td721 def SMax : DXILOp<37, binary> {
722 let Doc = "Signed integer maximum. SMax(a,b) = a > b ? a : b";
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVInstrInfo.td737 def OpGroupSMax: OpGroup<"SMax", 271>;
804 def OpGroupNonUniformSMax: OpGroupNUGroup<"SMax", 356>;
H A DSPIRVBuiltins.td426 defm : DemangledExtendedBuiltin<"SMax", GLSL_std_450, 42>;
H A DSPIRVInstructionSelector.cpp679 return selectExtInst(ResVReg, ResType, I, CL::s_max, GL::SMax); in spvSelect()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopInterchange.cpp833 case RecurKind::SMax: in findInnerReductionPhi()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelDAGToDAG.cpp2048 uint64_t SMax = SKnown.getMaxValue().getZExtValue(); in checkFlatScratchSVSSwizzleBug() local
2049 return (VMax & 3) + (SMax & 3) >= 4; in checkFlatScratchSVSSwizzleBug()
H A DAMDGPUInstructionSelector.cpp5577 uint64_t SMax = SKnown.getMaxValue().getZExtValue(); in checkFlatScratchSVSSwizzleBug() local
5578 return (VMax & 3) + (SMax & 3) >= 4; in checkFlatScratchSVSSwizzleBug()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp21849 case RecurKind::SMax: in createOp()
21935 return RecurKind::SMax; in getRdxKind()
21986 return RecurKind::SMax; in getRdxKind()
23066 case RecurKind::SMax: in getReductionCost()
23184 case RecurKind::SMax: in emitReduction()
23323 case RecurKind::SMax: in emitScaleForReusedOps()
23387 case RecurKind::SMax: in emitReusedOps()
H A DVPlanRecipes.cpp770 MinMaxKind = IsSigned ? RecurKind::SMax : RecurKind::UMax; in generate()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp5101 case RecurKind::SMax: in isLegalToVectorizeReduction()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp52692 SDValue UMin, SMin, SMax; in detectUSatPattern() local
52701 sd_match(SMin, m_SMax(m_Value(SMax), m_ConstInt(C1))) && in detectUSatPattern()
52705 if (sd_match(In, m_SMax(m_Value(SMax), m_ConstInt(C1))) && in detectUSatPattern()
52706 sd_match(SMax, m_SMin(m_Value(SMin), m_ConstInt(C2))) && in detectUSatPattern()
52737 SDValue SMin, SMax; in detectSSatPattern() local
52739 sd_match(SMin, m_SMax(m_Value(SMax), m_SpecificInt(SignedMin)))) in detectSSatPattern()
52740 return SMax; in detectSSatPattern()
52742 if (sd_match(In, m_SMax(m_Value(SMax), m_SpecificInt(SignedMin))) && in detectSSatPattern()
52743 sd_match(SMax, m_SMin(m_Value(SMin), m_SpecificInt(SignedMax)))) in detectSSatPattern()