Home
last modified time | relevance | path

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

/llvm-project-15.0.7/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()
208 const SmallPtrSetImpl<const Value *> &EphValues; member
251 SimpleCaptureTracker SCT(EphValues, ReturnCaptures); in PointerMayBeCaptured()
297 const SmallPtrSetImpl<const Value *> &EphValues, in FindEarliestCapture() argument
[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.cpp412 SmallPtrSetImpl<const Value *> &EphValues);
2389 SmallPtrSetImpl<const Value *> &EphValues) { in analyzeBlock() argument
2403 if (EphValues.count(&I)) in analyzeBlock()
2607 SmallPtrSet<const Value *, 32> EphValues; in analyze() local
2608 CodeMetrics::collectEphemeralValues(&F, &GetAssumptionCache(F), EphValues); in analyze()
2649 InlineResult IR = analyzeBlock(BB, EphValues); in analyze()
H A DBasicAliasAnalysis.cpp212 /*ReturnCaptures=*/false, /*StoreCaptures=*/true, DT, EphValues); in isNotCapturedBeforeOrAt()
H A DValueTracking.cpp525 SmallPtrSet<const Value *, 16> EphValues; in isEphemeralValueOf() local
540 return EphValues.count(U); in isEphemeralValueOf()
548 EphValues.insert(V); in isEphemeralValueOf()
/llvm-project-15.0.7/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.h416 const SmallPtrSetImpl<const Value *> &EphValues; variable
420 const SmallPtrSetImpl<const Value *> &EphValues) in EarliestEscapeInfo() argument
421 : DT(DT), LI(LI), EphValues(EphValues) {} in EarliestEscapeInfo()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopUnrollAndJamPass.cpp160 const SmallPtrSetImpl<const Value *> &EphValues, in computeUnrollAndJamCount() argument
173 L, TTI, DT, LI, SE, EphValues, ORE, OuterTripCount, MaxTripCount, in computeUnrollAndJamCount()
330 SmallPtrSet<const Value *, 32> EphValues; in tryToUnrollAndJamLoop() local
331 CodeMetrics::collectEphemeralValues(L, &AC, EphValues); in tryToUnrollAndJamLoop()
335 Convergent, TTI, EphValues, UP.BEInsns); in tryToUnrollAndJamLoop()
338 TTI, EphValues, UP.BEInsns); in tryToUnrollAndJamLoop()
387 L, SubLoop, TTI, DT, LI, 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()
949 if (auto UnrollFactor = shouldFullUnroll(L, TTI, DT, SE, EphValues, in computeUnrollCount()
972 if (auto UnrollFactor = shouldFullUnroll(L, TTI, DT, SE, EphValues, in computeUnrollCount()
1191 SmallPtrSet<const Value *, 32> EphValues; in tryToUnrollLoop() local
1192 CodeMetrics::collectEphemeralValues(L, &AC, EphValues); in tryToUnrollLoop()
[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.cpp769 SmallPtrSet<const Value *, 32> EphValues; member
791 : F(F), AA(AA), EI(DT, LI, EphValues), BatchAA(AA, &EI), MSSA(MSSA), in DSEState()
823 CodeMetrics::collectEphemeralValues(&F, &AC, EphValues); in DSEState()
970 I.first->second = !PointerMayBeCaptured(V, true, false, EphValues); in isInvisibleToCallerAfterRet()
989 I.first->second = PointerMayBeCaptured(V, false, true, EphValues); in isInvisibleToCallerOnUnwind()
H A DSimpleLoopUnswitch.cpp2853 SmallPtrSet<const Value *, 4> EphValues; in unswitchBestCondition() local
2854 CodeMetrics::collectEphemeralValues(&L, &AC, EphValues); in unswitchBestCondition()
2870 if (EphValues.count(&I)) in unswitchBestCondition()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/
H A DUnrollLoop.h104 const SmallPtrSetImpl<const Value *> &EphValues,
129 const SmallPtrSetImpl<const Value *> &EphValues, unsigned BEInsns);
/llvm-project-15.0.7/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.cpp2924 SmallPtrSet<const Value *, 32> EphValues; in BlockIsSimpleEnoughToThreadThrough() local
2930 [&](const User *U) { return EphValues.count(U); }); in BlockIsSimpleEnoughToThreadThrough()
2943 EphValues.insert(&I); in BlockIsSimpleEnoughToThreadThrough()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp398 SmallPtrSet<const Value *, 32> EphValues; in analyzeFunction() local
399 CodeMetrics::collectEphemeralValues(F, &(GetAC)(*F), EphValues); in analyzeFunction()
401 Metrics.analyzeBasicBlock(&BB, (GetTTI)(*F), EphValues); in analyzeFunction()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp730 SmallPtrSet<const Value *, 32> EphValues; in isHardwareLoopProfitable() local
731 CodeMetrics::collectEphemeralValues(L, &AC, EphValues); in isHardwareLoopProfitable()
734 Metrics.analyzeBasicBlock(BB, *this, EphValues); in isHardwareLoopProfitable()
/llvm-project-15.0.7/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp3062 SmallPtrSet<const Value *, 32> EphValues; in computeHeuristicUnrollFactor() local
3063 CodeMetrics::collectEphemeralValues(L, &AC, EphValues); in computeHeuristicUnrollFactor()
3082 EphValues.insert(&I); in computeHeuristicUnrollFactor()
3092 TTI, EphValues, UP.BEInsns); in computeHeuristicUnrollFactor()
3110 computeUnrollCount(L, TTI, DT, &LI, SE, EphValues, &ORE, TripCount, in computeHeuristicUnrollFactor()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp858 CodeMetrics::collectEphemeralValues(F, AC, EphValues); in BoUpSLP()
2681 SmallPtrSet<const Value *, 32> EphValues; member in llvm::slpvectorizer::BoUpSLP
4734 if (!EphValues.empty()) { in buildTree_rec()
4736 if (EphValues.count(V)) { in buildTree_rec()
6616 [this](Value *V) { return EphValues.contains(V); }) && in isFullyVectorizableTinyTree()
7067 if (EphValues.count(EU.User)) in getTreeCost()