Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/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 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);
2530 SmallPtrSetImpl<const Value *> &EphValues) { in analyzeBlock() argument
2544 if (EphValues.count(&I)) in analyzeBlock()
2748 SmallPtrSet<const Value *, 32> EphValues; in analyze() local
2749 CodeMetrics::collectEphemeralValues(&F, &GetAssumptionCache(F), EphValues); in analyze()
2788 InlineResult IR = analyzeBlock(BB, EphValues); in analyze()
H A DValueTracking.cpp445 SmallPtrSet<const Value *, 16> EphValues; in isEphemeralValueOf() local
460 return EphValues.count(U); in isEphemeralValueOf()
468 EphValues.insert(V); in isEphemeralValueOf()
/freebsd-14.2/contrib/llvm-project/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()
/freebsd-14.2/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()
372 L, SubLoop, TTI, DT, LI, &AC, SE, EphValues, &ORE, OuterTripCount, in tryToUnrollAndJamLoop()
H A DLoopUnrollPass.cpp351 const SmallPtrSetImpl<const Value *> &EphValues, in analyzeLoopUnrollCost() argument
538 if (isa<DbgInfoIntrinsic>(I) || EphValues.count(&I)) in analyzeLoopUnrollCost()
670 const SmallPtrSetImpl<const Value *> &EphValues, unsigned BEInsns) { in UnrollCostEstimator() argument
673 Metrics.analyzeBasicBlock(BB, TTI, EphValues); in UnrollCostEstimator()
809 L, FullUnrollTripCount, DT, SE, EphValues, TTI, in shouldFullUnroll()
879 const SmallPtrSetImpl<const Value *> &EphValues, in computeUnrollCount() argument
937 if (auto UnrollFactor = shouldFullUnroll(L, TTI, DT, SE, EphValues, in computeUnrollCount()
960 if (auto UnrollFactor = shouldFullUnroll(L, TTI, DT, SE, EphValues, in computeUnrollCount()
1180 SmallPtrSet<const Value *, 32> EphValues; in tryToUnrollLoop() local
1181 CodeMetrics::collectEphemeralValues(L, &AC, EphValues); in tryToUnrollLoop()
[all …]
H A DDFAJumpThreading.cpp717 SmallPtrSet<const Value *, 32> EphValues) in TransformDFA()
719 EphValues(EphValues) {} in TransformDFA()
754 Metrics.analyzeBasicBlock(BB, *TTI, EphValues); in isLegalAndProfitableToTransform()
771 Metrics.analyzeBasicBlock(BB, *TTI, EphValues); in isLegalAndProfitableToTransform()
1240 SmallPtrSet<const Value *, 32> EphValues; member
1293 SmallPtrSet<const Value *, 32> EphValues; in run() local
1295 CodeMetrics::collectEphemeralValues(&F, AC, EphValues); in run()
1298 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.cpp3303 SmallPtrSet<const Value *, 4> EphValues; in findBestNonTrivialUnswitchCandidate() local
3304 CodeMetrics::collectEphemeralValues(&L, &AC, EphValues); in findBestNonTrivialUnswitchCandidate()
3320 if (EphValues.count(&I)) in findBestNonTrivialUnswitchCandidate()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DUnrollLoop.h131 const SmallPtrSetImpl<const Value *> &EphValues,
149 const SmallPtrSetImpl<const Value *> &EphValues,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopRotationUtils.cpp441 SmallPtrSet<const Value *, 32> EphValues; in rotateLoop() local
442 CodeMetrics::collectEphemeralValues(L, AC, EphValues); in rotateLoop()
445 Metrics.analyzeBasicBlock(OrigHeader, *TTI, EphValues, PrepareForLTO); in rotateLoop()
H A DSimplifyCFG.cpp2741 SmallPtrSet<const Instruction *, 32> EphValues; member in __anona1e8f1c11a11::EphemeralValueTracker
2748 return EphValues.count(cast<Instruction>(U)); in isEphemeral()
2755 EphValues.insert(I); in track()
2761 bool contains(const Instruction *I) const { return EphValues.contains(I); } in contains()
/freebsd-14.2/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-14.2/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-14.2/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp3848 SmallPtrSet<const Value *, 32> EphValues; in computeHeuristicUnrollFactor() local
3849 CodeMetrics::collectEphemeralValues(L, &AC, EphValues); in computeHeuristicUnrollFactor()
3868 EphValues.insert(&I); in computeHeuristicUnrollFactor()
3873 UnrollCostEstimator UCE(L, TTI, EphValues, UP.BEInsns); in computeHeuristicUnrollFactor()
3892 computeUnrollCount(L, TTI, DT, &LI, &AC, SE, EphValues, &ORE, TripCount, in computeHeuristicUnrollFactor()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp984 CodeMetrics::collectEphemeralValues(F, AC, EphValues); in BoUpSLP()
3023 SmallPtrSet<const Value *, 32> EphValues; member in llvm::slpvectorizer::BoUpSLP
5605 if (!EphValues.empty()) { in buildTree_rec()
5607 if (EphValues.count(V)) { in buildTree_rec()
8497 [this](Value *V) { return EphValues.contains(V); }) && in isFullyVectorizableTinyTree()
8968 if (EphValues.count(EU.User)) in getTreeCost()