Home
last modified time | relevance | path

Searched refs:EphValues (Results 1 – 23 of 23) sorted by relevance

/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DCodeMetrics.cpp43 SmallPtrSetImpl<const Value *> &EphValues) { in completeEphemeralValues() argument
58 if (!all_of(V->users(), [&](const User *U) { return EphValues.count(U); })) in completeEphemeralValues()
61 EphValues.insert(V); in completeEphemeralValues()
72 SmallPtrSetImpl<const Value *> &EphValues) { in collectEphemeralValues() argument
87 if (EphValues.insert(I).second) in collectEphemeralValues()
91 completeEphemeralValues(Visited, Worklist, EphValues); in collectEphemeralValues()
96 SmallPtrSetImpl<const Value *> &EphValues) { in collectEphemeralValues() argument
107 if (EphValues.insert(I).second) in collectEphemeralValues()
111 completeEphemeralValues(Visited, Worklist, EphValues); in collectEphemeralValues()
118 const SmallPtrSetImpl<const Value *> &EphValues, bool PrepareForLTO) { in analyzeBasicBlock() argument
[all …]
H A DCaptureTracking.cpp80 const SmallPtrSetImpl<const Value *> &EphValues, bool ReturnCaptures) in SimpleCaptureTracker()
81 : EphValues(EphValues), ReturnCaptures(ReturnCaptures) {} in SimpleCaptureTracker()
89 if (EphValues.contains(U->getUser())) in captured()
96 const SmallPtrSetImpl<const Value *> &EphValues; member
166 const SmallPtrSetImpl<const Value *> &EphValues) in EarliestCaptures()
167 : EphValues(EphValues), DT(DT), ReturnCaptures(ReturnCaptures), F(F) {} in EarliestCaptures()
179 if (EphValues.contains(I)) in captured()
193 const SmallPtrSetImpl<const Value *> &EphValues; member
225 const SmallPtrSetImpl<const Value *> &EphValues, in PointerMayBeCaptured() argument
236 SimpleCaptureTracker SCT(EphValues, ReturnCaptures); in PointerMayBeCaptured()
[all …]
H A DIVUsers.cpp162 if (EphValues.count(I)) in AddUsersIfInteresting()
255 EphValues.clear(); in IVUsers()
256 CodeMetrics::collectEphemeralValues(L, AC, EphValues); in IVUsers()
H A DInlineCost.cpp442 SmallPtrSetImpl<const Value *> &EphValues);
2441 SmallPtrSetImpl<const Value *> &EphValues) { in analyzeBlock() argument
2455 if (EphValues.count(&I)) in analyzeBlock()
2659 SmallPtrSet<const Value *, 32> EphValues; in analyze() local
2660 CodeMetrics::collectEphemeralValues(&F, &GetAssumptionCache(F), EphValues); in analyze()
2701 InlineResult IR = analyzeBlock(BB, EphValues); in analyze()
H A DBasicAliasAnalysis.cpp209 /*ReturnCaptures=*/false, /*StoreCaptures=*/true, DT, EphValues); in isNotCapturedBeforeOrAt()
H A DValueTracking.cpp493 SmallPtrSet<const Value *, 16> EphValues; in isEphemeralValueOf() local
508 return EphValues.count(U); in isEphemeralValueOf()
516 EphValues.insert(V); in isEphemeralValueOf()
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DCodeMetrics.h79 const SmallPtrSetImpl<const Value *> &EphValues,
85 SmallPtrSetImpl<const Value *> &EphValues);
90 SmallPtrSetImpl<const Value *> &EphValues);
H A DIVUsers.h104 SmallPtrSet<const Value *, 32> EphValues; variable
113 IVUses(std::move(X.IVUses)), EphValues(std::move(X.EphValues)) { in IVUsers()
H A DCaptureTracking.h52 const SmallPtrSetImpl<const Value *> &EphValues,
86 const SmallPtrSetImpl<const Value *> &EphValues,
H A DAliasAnalysis.h188 const SmallPtrSetImpl<const Value *> &EphValues; variable
192 const SmallPtrSetImpl<const Value *> &EphValues) in EarliestEscapeInfo() argument
193 : DT(DT), LI(LI), EphValues(EphValues) {} in EarliestEscapeInfo()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DLoopUnrollAndJamPass.cpp158 const SmallPtrSetImpl<const Value *> &EphValues, in computeUnrollAndJamCount() argument
171 L, TTI, DT, LI, AC, SE, EphValues, ORE, OuterTripCount, MaxTripCount, in computeUnrollAndJamCount()
328 SmallPtrSet<const Value *, 32> EphValues; in tryToUnrollAndJamLoop() local
329 CodeMetrics::collectEphemeralValues(L, &AC, EphValues); in tryToUnrollAndJamLoop()
333 Convergent, TTI, EphValues, UP.BEInsns); in tryToUnrollAndJamLoop()
336 TTI, EphValues, UP.BEInsns); in tryToUnrollAndJamLoop()
385 L, SubLoop, TTI, DT, LI, &AC, SE, EphValues, &ORE, OuterTripCount, in tryToUnrollAndJamLoop()
H A DLoopUnrollPass.cpp348 const SmallPtrSetImpl<const Value *> &EphValues, in analyzeLoopUnrollCost() argument
535 if (isa<DbgInfoIntrinsic>(I) || EphValues.count(&I)) in analyzeLoopUnrollCost()
669 const SmallPtrSetImpl<const Value *> &EphValues, unsigned BEInsns) { in ApproximateLoopSize() argument
672 Metrics.analyzeBasicBlock(BB, TTI, EphValues); in ApproximateLoopSize()
805 ScalarEvolution &SE, const SmallPtrSetImpl<const Value *> &EphValues, in shouldFullUnroll() argument
822 L, FullUnrollTripCount, DT, SE, EphValues, TTI, in shouldFullUnroll()
892 ScalarEvolution &SE, const SmallPtrSetImpl<const Value *> &EphValues, in computeUnrollCount() argument
950 if (auto UnrollFactor = shouldFullUnroll(L, TTI, DT, SE, EphValues, in computeUnrollCount()
973 if (auto UnrollFactor = shouldFullUnroll(L, TTI, DT, SE, EphValues, in computeUnrollCount()
1195 SmallPtrSet<const Value *, 32> EphValues; in tryToUnrollLoop() local
[all …]
H A DDFAJumpThreading.cpp757 SmallPtrSet<const Value *, 32> EphValues) in TransformDFA()
759 EphValues(EphValues) {} in TransformDFA()
790 Metrics.analyzeBasicBlock(BB, *TTI, EphValues); in isLegalAndProfitableToTransform()
807 Metrics.analyzeBasicBlock(BB, *TTI, EphValues); in isLegalAndProfitableToTransform()
1272 SmallPtrSet<const Value *, 32> EphValues; member
1325 SmallPtrSet<const Value *, 32> EphValues; in run() local
1327 CodeMetrics::collectEphemeralValues(&F, AC, EphValues); in run()
1330 TransformDFA Transform(&SwitchPaths, DT, AC, TTI, ORE, EphValues); in run()
H A DLoopDataPrefetch.cpp281 SmallPtrSet<const Value *, 32> EphValues; in runOnLoop() local
282 CodeMetrics::collectEphemeralValues(L, AC, EphValues); in runOnLoop()
302 Metrics.analyzeBasicBlock(BB, *TTI, EphValues); in runOnLoop()
H A DDeadStoreElimination.cpp825 SmallPtrSet<const Value *, 32> EphValues; member
847 : F(F), AA(AA), EI(DT, LI, EphValues), BatchAA(AA, &EI), MSSA(MSSA), in DSEState()
879 CodeMetrics::collectEphemeralValues(&F, &AC, EphValues); in DSEState()
1049 I.first->second = !PointerMayBeCaptured(V, true, false, EphValues); in isInvisibleToCallerAfterRet()
1068 I.first->second = PointerMayBeCaptured(V, false, true, EphValues); in isInvisibleToCallerOnUnwind()
H A DSimpleLoopUnswitch.cpp2899 SmallPtrSet<const Value *, 4> EphValues; in findBestNonTrivialUnswitchCandidate() local
2900 CodeMetrics::collectEphemeralValues(&L, &AC, EphValues); in findBestNonTrivialUnswitchCandidate()
2916 if (EphValues.count(&I)) in findBestNonTrivialUnswitchCandidate()
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/Utils/
H A DUnrollLoop.h105 const SmallPtrSetImpl<const Value *> &EphValues,
131 const SmallPtrSetImpl<const Value *> &EphValues, unsigned BEInsns);
/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp382 SmallPtrSet<const Value *, 32> EphValues; in analyzeFunction() local
383 CodeMetrics::collectEphemeralValues(F, &(GetAC)(*F), EphValues); in analyzeFunction()
385 Metrics.analyzeBasicBlock(&BB, (GetTTI)(*F), EphValues); in analyzeFunction()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DLoopRotationUtils.cpp295 SmallPtrSet<const Value *, 32> EphValues; in rotateLoop() local
296 CodeMetrics::collectEphemeralValues(L, AC, EphValues); in rotateLoop()
299 Metrics.analyzeBasicBlock(OrigHeader, *TTI, EphValues, PrepareForLTO); in rotateLoop()
H A DSimplifyCFG.cpp2656 SmallPtrSet<const Instruction *, 32> EphValues; member in __anonf23ebfa21811::EphemeralValueTracker
2663 return EphValues.count(cast<Instruction>(U)); in isEphemeral()
2670 EphValues.insert(I); in track()
2676 bool contains(const Instruction *I) const { return EphValues.contains(I); } in contains()
/openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp353 SmallPtrSet<const Value *, 32> EphValues; in isHardwareLoopProfitable() local
354 CodeMetrics::collectEphemeralValues(L, &AC, EphValues); in isHardwareLoopProfitable()
357 Metrics.analyzeBasicBlock(BB, *this, EphValues); in isHardwareLoopProfitable()
/openbsd-src/gnu/llvm/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp3269 SmallPtrSet<const Value *, 32> EphValues; in computeHeuristicUnrollFactor() local
3270 CodeMetrics::collectEphemeralValues(L, &AC, EphValues); in computeHeuristicUnrollFactor()
3289 EphValues.insert(&I); in computeHeuristicUnrollFactor()
3299 TTI, EphValues, UP.BEInsns); in computeHeuristicUnrollFactor()
3317 computeUnrollCount(L, TTI, DT, &LI, &AC, SE, EphValues, &ORE, TripCount, in computeHeuristicUnrollFactor()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp982 CodeMetrics::collectEphemeralValues(F, AC, EphValues); in BoUpSLP()
2878 SmallPtrSet<const Value *, 32> EphValues; member in llvm::slpvectorizer::BoUpSLP
5163 if (!EphValues.empty()) { in buildTree_rec()
5165 if (EphValues.count(V)) { in buildTree_rec()
7474 [this](Value *V) { return EphValues.contains(V); }) && in isFullyVectorizableTinyTree()
7923 if (EphValues.count(EU.User)) in getTreeCost()