Home
last modified time | relevance | path

Searched refs:EphValues (Results 1 – 20 of 20) 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 DEphemeralValuesCache.cpp16 CodeMetrics::collectEphemeralValues(&F, &AC, EphValues); in collectEphemeralValues()
H A DInlineCost.cpp481 const SmallPtrSetImpl<const Value *> &EphValues);
2732 const SmallPtrSetImpl<const Value *> &EphValues) { in analyzeBlock() argument
2746 if (EphValues.count(&I)) in analyzeBlock()
2950 const SmallPtrSetImpl<const Value *> *EphValues = &EphValuesStorage; in analyze() local
2952 EphValues = &GetEphValuesCache(F).ephValues(); in analyze()
2994 InlineResult IR = analyzeBlock(BB, *EphValues); in analyze()
H A DValueTracking.cpp461 SmallPtrSet<const Instruction *, 16> EphValues; in isEphemeralValueOf() local
476 return EphValues.count(cast<Instruction>(U)); in isEphemeralValueOf()
482 EphValues.insert(V); in isEphemeralValueOf()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DEphemeralValuesCache.h29 SmallPtrSet<const Value *, 32> EphValues; variable
39 EphValues.clear(); in clear()
45 return EphValues; in ephValues()
H A DCodeMetrics.h83 const SmallPtrSetImpl<const Value *> &EphValues,
90 SmallPtrSetImpl<const Value *> &EphValues);
96 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()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopUnrollAndJamPass.cpp153 const SmallPtrSetImpl<const Value *> &EphValues, in computeUnrollAndJamCount() argument
168 L, TTI, DT, LI, AC, SE, EphValues, ORE, OuterTripCount, MaxTripCount, in computeUnrollAndJamCount()
322 SmallPtrSet<const Value *, 32> EphValues; in tryToUnrollAndJamLoop() local
323 CodeMetrics::collectEphemeralValues(L, &AC, EphValues); in tryToUnrollAndJamLoop()
325 UnrollCostEstimator InnerUCE(SubLoop, TTI, EphValues, UP.BEInsns); in tryToUnrollAndJamLoop()
326 UnrollCostEstimator OuterUCE(L, TTI, EphValues, UP.BEInsns); in tryToUnrollAndJamLoop()
373 L, SubLoop, TTI, DT, LI, &AC, SE, EphValues, &ORE, OuterTripCount, in tryToUnrollAndJamLoop()
H A DLoopUnrollPass.cpp358 const SmallPtrSetImpl<const Value *> &EphValues, in analyzeLoopUnrollCost() argument
553 if (EphValues.count(&I)) in analyzeLoopUnrollCost()
685 const SmallPtrSetImpl<const Value *> &EphValues, unsigned BEInsns) { in UnrollCostEstimator() argument
688 Metrics.analyzeBasicBlock(BB, TTI, EphValues, /* PrepareForLTO= */ false, in UnrollCostEstimator()
839 ScalarEvolution &SE, const SmallPtrSetImpl<const Value *> &EphValues, in shouldFullUnroll() argument
856 L, FullUnrollTripCount, DT, SE, EphValues, TTI, in shouldFullUnroll()
926 const SmallPtrSetImpl<const Value *> &EphValues, in computeUnrollCount() argument
984 if (auto UnrollFactor = shouldFullUnroll(L, TTI, DT, SE, EphValues, in computeUnrollCount()
1007 if (auto UnrollFactor = shouldFullUnroll(L, TTI, DT, SE, EphValues, in computeUnrollCount()
1228 SmallPtrSet<const Value *, 32> EphValues; in tryToUnrollLoop() local
[all …]
H A DDFAJumpThreading.cpp802 SmallPtrSet<const Value *, 32> EphValues) in TransformDFA()
804 EphValues(EphValues) {} in TransformDFA()
839 Metrics.analyzeBasicBlock(BB, *TTI, EphValues); in isLegalAndProfitableToTransform()
856 Metrics.analyzeBasicBlock(BB, *TTI, EphValues); in isLegalAndProfitableToTransform()
1325 SmallPtrSet<const Value *, 32> EphValues; member
1388 SmallPtrSet<const Value *, 32> EphValues; in run() local
1390 CodeMetrics::collectEphemeralValues(&F, AC, EphValues); in run()
1393 TransformDFA Transform(&SwitchPaths, DT, AC, TTI, ORE, EphValues); in run()
H A DLoopDataPrefetch.cpp280 SmallPtrSet<const Value *, 32> EphValues; in runOnLoop() local
281 CodeMetrics::collectEphemeralValues(L, AC, EphValues); in runOnLoop()
301 Metrics.analyzeBasicBlock(BB, *TTI, EphValues); in runOnLoop()
H A DSimpleLoopUnswitch.cpp3332 SmallPtrSet<const Value *, 4> EphValues; in findBestNonTrivialUnswitchCandidate() local
3333 CodeMetrics::collectEphemeralValues(&L, &AC, EphValues); in findBestNonTrivialUnswitchCandidate()
3349 if (EphValues.count(&I)) in findBestNonTrivialUnswitchCandidate()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DUnrollLoop.h142 const SmallPtrSetImpl<const Value *> &EphValues,
160 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.cpp2937 SmallPtrSet<const Instruction *, 32> EphValues; member in __anonee21a60b1e11::EphemeralValueTracker
2944 return EphValues.count(cast<Instruction>(U)); in isEphemeral()
2951 EphValues.insert(I); in track()
2957 bool contains(const Instruction *I) const { return EphValues.contains(I); } in contains()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp354 SmallPtrSet<const Value *, 32> EphValues; in isHardwareLoopProfitable() local
355 CodeMetrics::collectEphemeralValues(L, &AC, EphValues); in isHardwareLoopProfitable()
358 Metrics.analyzeBasicBlock(BB, TTI, EphValues); in isHardwareLoopProfitable()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp690 SmallPtrSet<const Value *, 32> EphValues; in run() local
691 CodeMetrics::collectEphemeralValues(&F, &GetAC(F), EphValues); in run()
693 Metrics.analyzeBasicBlock(&BB, GetTTI(F), EphValues); in run()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp5691 SmallPtrSet<const Value *, 32> EphValues; in computeHeuristicUnrollFactor() local
5692 CodeMetrics::collectEphemeralValues(L, &AC, EphValues); in computeHeuristicUnrollFactor()
5711 EphValues.insert(&I); in computeHeuristicUnrollFactor()
5716 UnrollCostEstimator UCE(L, TTI, EphValues, UP.BEInsns); in computeHeuristicUnrollFactor()
5735 computeUnrollCount(L, TTI, DT, &LI, &AC, SE, EphValues, &ORE, TripCount, in computeHeuristicUnrollFactor()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp1798 CodeMetrics::collectEphemeralValues(F, AC, EphValues); in BoUpSLP()
4424 SmallPtrSet<const Value *, 32> EphValues; member in llvm::slpvectorizer::BoUpSLP
10109 if (S && !EphValues.empty()) { in getScalarsVectorizationLegality()
10111 if (EphValues.count(V)) { in getScalarsVectorizationLegality()
13903 [this](Value *V) { return EphValues.contains(V); }) && in isFullyVectorizableTinyTree()
14636 if (EphValues.count(EU.User)) in getTreeCost()