/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | CodeMetrics.cpp | 44 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 D | IVUsers.cpp | 162 if (EphValues.count(I)) in AddUsersIfInteresting() 255 EphValues.clear(); in IVUsers() 256 CodeMetrics::collectEphemeralValues(L, AC, EphValues); in IVUsers()
|
H A D | InlineCost.cpp | 453 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 D | ValueTracking.cpp | 452 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 D | CodeMetrics.h | 82 const SmallPtrSetImpl<const Value *> &EphValues, 88 SmallPtrSetImpl<const Value *> &EphValues); 93 SmallPtrSetImpl<const Value *> &EphValues);
|
H A D | IVUsers.h | 105 SmallPtrSet<const Value *, 32> EphValues; variable 114 IVUses(std::move(X.IVUses)), EphValues(std::move(X.EphValues)) { in IVUsers()
|
H A D | CaptureTracking.h |
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | LoopUnrollAndJamPass.cpp | 154 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 D | LoopUnrollPass.cpp | 357 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 D | DFAJumpThreading.cpp | 761 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 D | LoopDataPrefetch.cpp | 281 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 D | SimpleLoopUnswitch.cpp | 3325 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 D | UnrollLoop.h | 137 const SmallPtrSetImpl<const Value *> &EphValues, 155 const SmallPtrSetImpl<const Value *> &EphValues,
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | LoopRotationUtils.cpp | 451 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 D | SimplifyCFG.cpp | 2799 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 D | FunctionSpecialization.cpp | 640 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 D | PPCTargetTransformInfo.cpp | 351 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 D | OMPIRBuilder.cpp | 5380 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 D | SLPVectorizer.cpp | 1149 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()
|