Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCodeMetrics.cpp44 SmallPtrSetImpl<const Value *> &EphValues) { in completeEphemeralValues() argument
59 if (!all_of(V->users(), [&](const User *U) { return EphValues.count(U); })) in completeEphemeralValues()
62 EphValues.insert(V); in completeEphemeralValues()
73 SmallPtrSetImpl<const Value *> &EphValues) { in collectEphemeralValues() argument
88 if (EphValues.insert(I).second) in collectEphemeralValues()
92 completeEphemeralValues(Visited, Worklist, EphValues); in collectEphemeralValues()
97 SmallPtrSetImpl<const Value *> &EphValues) { in collectEphemeralValues() argument
108 if (EphValues.insert(I).second) in collectEphemeralValues()
112 completeEphemeralValues(Visited, Worklist, EphValues); in collectEphemeralValues()
131 const SmallPtrSetImpl<const Value *> &EphValues, bool PrepareForLTO, in analyzeBasicBlock() 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.cpp453 SmallPtrSetImpl<const Value *> &EphValues);
2538 SmallPtrSetImpl<const Value *> &EphValues) { in analyzeBlock() argument
2552 if (EphValues.count(&I)) in analyzeBlock()
2754 SmallPtrSet<const Value *, 32> EphValues; in analyze() local
2755 CodeMetrics::collectEphemeralValues(&F, &GetAssumptionCache(F), EphValues); in analyze()
2794 InlineResult IR = analyzeBlock(BB, EphValues); in analyze()
H A DValueTracking.cpp452 SmallPtrSet<const Value *, 16> EphValues; in isEphemeralValueOf() local
467 return EphValues.count(U); in isEphemeralValueOf()
475 EphValues.insert(V); in isEphemeralValueOf()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DCodeMetrics.h82 const SmallPtrSetImpl<const Value *> &EphValues,
88 SmallPtrSetImpl<const Value *> &EphValues);
93 SmallPtrSetImpl<const Value *> &EphValues);
H A DIVUsers.h105 SmallPtrSet<const Value *, 32> EphValues; variable
114 IVUses(std::move(X.IVUses)), EphValues(std::move(X.EphValues)) { in IVUsers()
H A DCaptureTracking.h
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopUnrollAndJamPass.cpp154 const SmallPtrSetImpl<const Value *> &EphValues, in computeUnrollAndJamCount() argument
169 L, TTI, DT, LI, AC, SE, EphValues, ORE, OuterTripCount, MaxTripCount, in computeUnrollAndJamCount()
323 SmallPtrSet<const Value *, 32> EphValues; in tryToUnrollAndJamLoop() local
324 CodeMetrics::collectEphemeralValues(L, &AC, EphValues); in tryToUnrollAndJamLoop()
326 UnrollCostEstimator InnerUCE(SubLoop, TTI, EphValues, UP.BEInsns); in tryToUnrollAndJamLoop()
327 UnrollCostEstimator OuterUCE(L, TTI, EphValues, UP.BEInsns); in tryToUnrollAndJamLoop()
374 L, SubLoop, TTI, DT, LI, &AC, SE, EphValues, &ORE, OuterTripCount, in tryToUnrollAndJamLoop()
H A DLoopUnrollPass.cpp357 const SmallPtrSetImpl<const Value *> &EphValues, in analyzeLoopUnrollCost() argument
552 if (isa<DbgInfoIntrinsic>(I) || EphValues.count(&I)) in analyzeLoopUnrollCost()
684 const SmallPtrSetImpl<const Value *> &EphValues, unsigned BEInsns) { in UnrollCostEstimator() argument
687 Metrics.analyzeBasicBlock(BB, TTI, EphValues, /* PrepareForLTO= */ false, in UnrollCostEstimator()
838 ScalarEvolution &SE, const SmallPtrSetImpl<const Value *> &EphValues, in shouldFullUnroll() argument
855 L, FullUnrollTripCount, DT, SE, EphValues, TTI, in shouldFullUnroll()
925 const SmallPtrSetImpl<const Value *> &EphValues, in computeUnrollCount() argument
983 if (auto UnrollFactor = shouldFullUnroll(L, TTI, DT, SE, EphValues, in computeUnrollCount()
1006 if (auto UnrollFactor = shouldFullUnroll(L, TTI, DT, SE, EphValues, in computeUnrollCount()
1227 SmallPtrSet<const Value *, 32> EphValues; in tryToUnrollLoop() local
[all …]
H A DDFAJumpThreading.cpp761 SmallPtrSet<const Value *, 32> EphValues) in TransformDFA()
763 EphValues(EphValues) {} in TransformDFA()
798 Metrics.analyzeBasicBlock(BB, *TTI, EphValues); in isLegalAndProfitableToTransform()
815 Metrics.analyzeBasicBlock(BB, *TTI, EphValues); in isLegalAndProfitableToTransform()
1285 SmallPtrSet<const Value *, 32> EphValues; member
1344 SmallPtrSet<const Value *, 32> EphValues; in run() local
1346 CodeMetrics::collectEphemeralValues(&F, AC, EphValues); in run()
1349 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 DSimpleLoopUnswitch.cpp3325 SmallPtrSet<const Value *, 4> EphValues; in findBestNonTrivialUnswitchCandidate()
3326 CodeMetrics::collectEphemeralValues(&L, &AC, EphValues); in findBestNonTrivialUnswitchCandidate()
3342 if (EphValues.count(&I)) in findBestNonTrivialUnswitchCandidate()
3324 SmallPtrSet<const Value *, 4> EphValues; findBestNonTrivialUnswitchCandidate() local
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DUnrollLoop.h137 const SmallPtrSetImpl<const Value *> &EphValues,
155 const SmallPtrSetImpl<const Value *> &EphValues,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopRotationUtils.cpp451 SmallPtrSet<const Value *, 32> EphValues; in rotateLoop() local
452 CodeMetrics::collectEphemeralValues(L, AC, EphValues); in rotateLoop()
455 Metrics.analyzeBasicBlock(OrigHeader, *TTI, EphValues, PrepareForLTO); in rotateLoop()
H A DSimplifyCFG.cpp2799 SmallPtrSet<const Instruction *, 32> EphValues; member in __anonee21a60b1c11::EphemeralValueTracker
2806 return EphValues.count(cast<Instruction>(U)); in isEphemeral()
2813 EphValues.insert(I); in track()
2819 bool contains(const Instruction *I) const { return EphValues.contains(I); } in contains()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp640 SmallPtrSet<const Value *, 32> EphValues; in run() local
641 CodeMetrics::collectEphemeralValues(&F, &GetAC(F), EphValues); in run()
643 Metrics.analyzeBasicBlock(&BB, GetTTI(F), EphValues); in run()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp351 SmallPtrSet<const Value *, 32> EphValues; in isHardwareLoopProfitable() local
352 CodeMetrics::collectEphemeralValues(L, &AC, EphValues); in isHardwareLoopProfitable()
355 Metrics.analyzeBasicBlock(BB, *this, EphValues); in isHardwareLoopProfitable()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp5380 SmallPtrSet<const Value *, 32> EphValues; in computeHeuristicUnrollFactor() local
5381 CodeMetrics::collectEphemeralValues(L, &AC, EphValues); in computeHeuristicUnrollFactor()
5400 EphValues.insert(&I); in computeHeuristicUnrollFactor()
5405 UnrollCostEstimator UCE(L, TTI, EphValues, UP.BEInsns); in computeHeuristicUnrollFactor()
5424 computeUnrollCount(L, TTI, DT, &LI, &AC, SE, EphValues, &ORE, TripCount, in computeHeuristicUnrollFactor()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp1149 CodeMetrics::collectEphemeralValues(F, AC, EphValues); in BoUpSLP()
3440 SmallPtrSet<const Value *, 32> EphValues; member in llvm::slpvectorizer::BoUpSLP
6759 if (!EphValues.empty()) { in buildTree_rec()
6761 if (EphValues.count(V)) { in buildTree_rec()
10006 [this](Value *V) { return EphValues.contains(V); }) && in isFullyVectorizableTinyTree()
10492 if (EphValues.count(EU.User)) in getTreeCost()