Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DConstantRange.cpp119 APInt SMax(CR.getSignedMax()); in makeAllowedICmpRegion() local
120 if (SMax.isMinSignedValue()) in makeAllowedICmpRegion()
122 return ConstantRange(APInt::getSignedMinValue(W), std::move(SMax)); in makeAllowedICmpRegion()
308 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() local
311 SMax.isStrictlyPositive() ? SignedMinVal - SMax : SignedMinVal); in makeGuaranteedNoWrapRegion()
319 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() local
321 SMax.isStrictlyPositive() ? SignedMinVal + SMax : SignedMinVal, in makeGuaranteedNoWrapRegion()
751 APInt SMax = APInt::getSignedMaxValue(BW); in castOp() local
754 SMax = SMax.sext(ResultBitWidth); in castOp()
756 return ConstantRange(std::move(SMin), std::move(SMax)); in castOp()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DIVDescriptors.h43 SMax, ///< Signed integer max implemented in terms of select(cmp()). enumerator
224 Kind == RecurKind::SMin || Kind == RecurKind::SMax; in isIntMinMaxRecurrenceKind()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DExpandReductions.cpp61 return RecurKind::SMax; in getRK()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DIVDescriptors.cpp51 case RecurKind::SMax: in isIntegerRecurrenceKind()
695 return InstDesc(Kind == RecurKind::SMax, I); in isMinMaxPattern()
863 if (AddReductionVar(Phi, RecurKind::SMax, TheLoop, FMF, RedDes, DB, AC, DT, in isReductionPHI()
1110 case RecurKind::SMax: in getRecurrenceIdentity()
1147 case RecurKind::SMax: in getOpcode()
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h271 case RecurKind::SMax: in isLegalToVectorizeReduction()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp999 APInt SMax = APInt::getSignedMaxValue(C.getBitWidth()); in foldICmpAddOpConst() local
1009 ConstantInt::get(X->getType(), SMax - C)); in foldICmpAddOpConst()
1020 ConstantInt::get(X->getType(), SMax - (C - 1))); in foldICmpAddOpConst()
2760 const APInt SMax = APInt::getSignedMaxValue(Ty->getScalarSizeInBits()); in foldICmpAddConstant() local
2765 if (Pred == CmpInst::ICMP_UGT && C == *C2 + SMax) in foldICmpAddConstant()
2774 return new ICmpInst(ICmpInst::ICMP_ULT, X, ConstantInt::get(Ty, SMax - C)); in foldICmpAddConstant()
2778 return new ICmpInst(ICmpInst::ICMP_UGT, X, ConstantInt::get(Ty, C ^ SMax)); in foldICmpAddConstant()
6522 APFloat SMax(RHS.getSemantics()); in foldFCmpIntToFPConst() local
6523 SMax.convertFromAPInt(APInt::getSignedMaxValue(IntWidth), true, in foldFCmpIntToFPConst()
6525 if (SMax < RHS) { // smax < 13123.0 in foldFCmpIntToFPConst()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DLoopUtils.cpp893 case RecurKind::SMax: in getMinMaxReductionPredicate()
1046 case RecurKind::SMax: in createSimpleTargetReduction()
/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVInstrInfo.td688 def OpGroupSMax: OpGroup<"SMax", 271>;
751 def OpGroupNonUniformSMax: OpGroupNUGroup<"SMax", 356>;
H A DSPIRVInstructionSelector.cpp340 return selectExtInst(ResVReg, ResType, I, CL::s_max, GL::SMax); in spvSelect()
H A DSPIRVBuiltins.td388 defm : DemangledExtendedBuiltin<"SMax", GLSL_std_450, 42>;
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelDAGToDAG.cpp1814 uint64_t SMax = SKnown.getMaxValue().getZExtValue(); in checkFlatScratchSVSSwizzleBug() local
1815 return (VMax & 3) + (SMax & 3) >= 4; in checkFlatScratchSVSSwizzleBug()
H A DAMDGPUInstructionSelector.cpp4130 uint64_t SMax = SKnown.getMaxValue().getZExtValue(); in checkFlatScratchSVSSwizzleBug() local
4131 return (VMax & 3) + (SMax & 3) >= 4; in checkFlatScratchSVSSwizzleBug()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp11932 case RecurKind::SMax: in createOp()
12018 return RecurKind::SMax; in getRdxKind()
12069 return RecurKind::SMax; in getRdxKind()
12936 case RecurKind::SMax: in getReductionCost()
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp2909 case RecurKind::SMax: in isLegalToVectorizeReduction()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp49977 if (SDValue SMax = MatchMinMax(In, ISD::SMAX, C1)) in detectUSatPattern() local
49978 if (SDValue SMin = MatchMinMax(SMax, ISD::SMIN, C2)) in detectUSatPattern()
50020 if (SDValue SMax = MatchMinMax(SMin, ISD::SMAX, SignedMin)) in detectSSatPattern() local
50021 return SMax; in detectSSatPattern()
50023 if (SDValue SMax = MatchMinMax(In, ISD::SMAX, SignedMin)) in detectSSatPattern() local
50024 if (SDValue SMin = MatchMinMax(SMax, ISD::SMIN, SignedMax)) in detectSSatPattern()