Home
last modified time | relevance | path

Searched refs:Threshold (Results 1 – 25 of 56) sorted by relevance

123

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DInlineCost.h73 int Threshold; variable
79 InlineCost(int Cost, int Threshold, const char *Reason = nullptr)
80 : Cost(Cost), Threshold(Threshold), Reason(Reason) { in Cost()
86 static InlineCost get(int Cost, int Threshold) { in get() argument
89 return InlineCost(Cost, Threshold); in get()
100 return Cost < Threshold;
117 return Threshold; in getThreshold()
130 int getCostDelta() const { return Threshold - getCost(); } in getCostDelta()
190 InlineParams getInlineParams(int Threshold);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DSpillPlacement.cpp116 void clear(const BlockFrequency &Threshold) { in clear()
118 SumLinkWeights = Threshold; in clear()
156 bool update(const Node nodes[], const BlockFrequency &Threshold) { in update()
176 if (SumN >= SumP + Threshold) in update()
178 else if (SumP >= SumN + Threshold) in update()
232 nodes[n].clear(Threshold); in activate()
259 Threshold = std::max(UINT64_C(1), Scaled); in setThreshold()
334 if (!nodes[n].update(nodes, Threshold)) in update()
DSpillPlacement.h67 BlockFrequency Threshold; variable
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DInlineCost.cpp380 int Threshold = 0; member in __anon20a3d8120111::InlineCostCallAnalyzer
537 Threshold -= SingleBBBonus; in onBlockAnalyzed()
565 Threshold -= VectorBonus; in finalizeAnalysis()
567 Threshold -= VectorBonus / 2; in finalizeAnalysis()
569 return Cost < std::max(1, Threshold); in finalizeAnalysis()
574 return Cost >= Threshold && !ComputeFullInlineCost; in shouldStop()
601 assert(Threshold >= 0); in onAnalysisStart()
608 Threshold += (SingleBBBonus + VectorBonus); in onAnalysisStart()
620 if (Cost >= Threshold && !ComputeFullInlineCost) in onAnalysisStart()
636 Params(Params), Threshold(Params.DefaultThreshold), in InlineCostCallAnalyzer()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86PadShortFunction.cpp54 , Threshold(4) {} in PadShortFunc()
84 const unsigned int Threshold; member
141 if (Cycles < Threshold) { in runOnMachineFunction()
153 addPadding(MBB, ReturnLoc, Threshold - Cycles); in runOnMachineFunction()
167 if (Cycles >= Threshold) in findReturns()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopUnrollPass.cpp188 UP.Threshold = OptLevel > 2 ? 300 : 150; in gatherUnrollingPreferences()
219 UP.Threshold = UP.OptSizeThreshold; in gatherUnrollingPreferences()
226 UP.Threshold = UnrollThreshold; in gatherUnrollingPreferences()
252 UP.Threshold = *UserThreshold; in gatherUnrollingPreferences()
752 if (UP.AllowRemainder && getUnrolledLoopSize(LoopSize, UP) < UP.Threshold) in computeUnrollCount()
782 UP.Threshold = std::max<unsigned>(UP.Threshold, PragmaUnrollThreshold); in computeUnrollCount()
819 if (getUnrolledLoopSize(LoopSize, UP) < UP.Threshold) { in computeUnrollCount()
830 UP.Threshold * UP.MaxPercentThresholdBoost / 100)) { in computeUnrollCount()
833 if (Cost->UnrolledCost < UP.Threshold * Boost / 100) { in computeUnrollCount()
1053 if (UP.Threshold == 0 && (!UP.Partial || UP.PartialThreshold == 0) && in tryToUnrollLoop()
[all …]
DSimplifyCFGPass.cpp235 CFGSimplifyPass(unsigned Threshold = 1, bool ForwardSwitchCond = false, in CFGSimplifyPass()
246 : Threshold; in CFGSimplifyPass()
290 llvm::createCFGSimplificationPass(unsigned Threshold, bool ForwardSwitchCond, in INITIALIZE_PASS_DEPENDENCY()
294 return new CFGSimplifyPass(Threshold, ForwardSwitchCond, ConvertSwitch, in INITIALIZE_PASS_DEPENDENCY()
DLoopRotation.cpp42 int Threshold = EnableHeaderDuplication ? DefaultRotationThreshold : 0; in run() local
51 SQ, false, Threshold, false); in run()
DLoopUnrollAndJamPass.cpp186 getUnrollAndJammedLoopSize(OuterLoopSize, UP) < UP.Threshold && in computeUnrollAndJamCount()
199 getUnrollAndJammedLoopSize(OuterLoopSize, UP) < UP.Threshold && in computeUnrollAndJamCount()
238 if (InnerTripCount && InnerLoopSize * InnerTripCount < UP.Threshold) { in computeUnrollAndJamCount()
DReassociate.cpp357 APInt Threshold = CM + Bitwidth; in IncorporateWeight() local
358 assert(LHS.ult(Threshold) && RHS.ult(Threshold) && "Weights not reduced!"); in IncorporateWeight()
361 while (LHS.uge(Threshold)) in IncorporateWeight()
367 unsigned Threshold = CM + Bitwidth; in IncorporateWeight() local
368 assert(LHS.getZExtValue() < Threshold && RHS.getZExtValue() < Threshold && in IncorporateWeight()
371 while (Total >= Threshold) in IncorporateWeight()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUTargetTransformInfo.cpp94 UP.Threshold = AMDGPU::getIntegerAttribute(F, "amdgpu-unroll-threshold", 300); in getUnrollingPreferences()
120 if (UP.Threshold < MaxBoost && Br->isConditional()) { in getUnrollingPreferences()
127 UP.Threshold += UnrollThresholdIf; in getUnrollingPreferences()
128 LLVM_DEBUG(dbgs() << "Set unroll threshold " << UP.Threshold in getUnrollingPreferences()
131 if (UP.Threshold >= MaxBoost) in getUnrollingPreferences()
143 unsigned Threshold = 0; in getUnrollingPreferences() local
145 Threshold = ThresholdPrivate; in getUnrollingPreferences()
147 Threshold = ThresholdLocal; in getUnrollingPreferences()
151 if (UP.Threshold >= Threshold) in getUnrollingPreferences()
206 UP.Threshold = Threshold; in getUnrollingPreferences()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/
DScalar.h193 bool ForgetAllSCEV = false, int Threshold = -1,
255 FunctionPass *createJumpThreadingPass(int Threshold = -1);
263 unsigned Threshold = 1, bool ForwardSwitchCond = false,
DIPO.h106 Pass *createFunctionInliningPass(int Threshold);
/third_party/mesa3d/src/mesa/main/
Dpoints.c162 if (ctx->Point.Threshold == params[0]) in _mesa_PointParameterfv()
165 ctx->Point.Threshold = params[0]; in _mesa_PointParameterfv()
219 ctx->Point.Threshold = 1.0; in _mesa_init_point()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DFunctionImport.cpp179 unsigned Threshold, StringRef CallerModulePath, in selectCallee() argument
235 if ((Summary->instCount() > Threshold) && in selectCallee()
364 const unsigned Threshold, const GVSummaryMapTy &DefinedGVSummaries, in computeImportForFunction() argument
374 LLVM_DEBUG(dbgs() << " edge -> " << VI << " Threshold:" << Threshold in computeImportForFunction()
403 Threshold * GetBonusMultiplier(Edge.second.getHotness()); in computeImportForFunction()
517 auto GetAdjustedThreshold = [](unsigned Threshold, bool IsHotCallsite) { in computeImportForFunction() argument
522 return Threshold * ImportHotInstrFactor; in computeImportForFunction()
523 return Threshold * ImportInstrFactor; in computeImportForFunction()
526 const auto AdjThreshold = GetAdjustedThreshold(Threshold, IsHotCallsite); in computeImportForFunction()
574 auto Threshold = std::get<1>(FuncInfo); in ComputeImportForModule() local
[all …]
DInlineSimple.cpp100 Pass *llvm::createFunctionInliningPass(int Threshold) { in createFunctionInliningPass() argument
101 return new SimpleInliner(llvm::getInlineParams(Threshold)); in createFunctionInliningPass()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Bitstream/
DBitstreamWriter.h148 uint32_t Threshold = 1U << (NumBits-1); in EmitVBR() local
151 while (Val >= Threshold) { in EmitVBR()
164 uint32_t Threshold = 1U << (NumBits-1); in EmitVBR64() local
167 while (Val >= Threshold) { in EmitVBR64()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/
DSampleProf.h470 uint64_t Threshold) const {
471 if (TotalSamples <= Threshold)
478 if (TS.getValue() > Threshold) {
486 NameFS.second.findInlinedFunctions(S, M, Threshold);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLoopUnrollPeel.cpp323 if (2 * LoopSize <= UP.Threshold && UnrollPeelMaxCount > 0) { in computePeelCount()
343 MaxPeelCount = std::min(MaxPeelCount, UP.Threshold / LoopSize - 1); in computePeelCount()
386 (LoopSize * (*PeelCount + 1) <= UP.Threshold)) { in computePeelCount()
397 LLVM_DEBUG(dbgs() << "Max peel cost: " << UP.Threshold << "\n"); in computePeelCount()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DLoopRotationUtils.h36 bool RotationOnly, unsigned Threshold, bool IsUtilMode);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm-c/Transforms/
DPassManagerBuilder.h63 unsigned Threshold);
DScalar.h120 int Threshold);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DLLVMContext.cpp138 void LLVMContext::setDiagnosticsHotnessThreshold(uint64_t Threshold) { in setDiagnosticsHotnessThreshold() argument
139 pImpl->DiagnosticsHotnessThreshold = Threshold; in setDiagnosticsHotnessThreshold()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXTargetTransformInfo.cpp153 UP.PartialThreshold = UP.Threshold / 4; in getUnrollingPreferences()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DLLVMContext.h219 void setDiagnosticsHotnessThreshold(uint64_t Threshold);

123