| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | CodeMetrics.cpp | 43 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 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); 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 D | ValueTracking.cpp | 445 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 D | CodeMetrics.h | 79 const SmallPtrSetImpl<const Value *> &EphValues, 85 SmallPtrSetImpl<const Value *> &EphValues); 90 SmallPtrSetImpl<const Value *> &EphValues);
|
| H A D | IVUsers.h | 104 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 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() 372 L, SubLoop, TTI, DT, LI, &AC, SE, EphValues, &ORE, OuterTripCount, in tryToUnrollAndJamLoop()
|
| H A D | LoopUnrollPass.cpp | 351 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 D | DFAJumpThreading.cpp | 717 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 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 | 3303 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 D | UnrollLoop.h | 131 const SmallPtrSetImpl<const Value *> &EphValues, 149 const SmallPtrSetImpl<const Value *> &EphValues,
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LoopRotationUtils.cpp | 441 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 D | SimplifyCFG.cpp | 2741 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 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-14.2/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-14.2/contrib/llvm-project/llvm/lib/Frontend/OpenMP/ |
| H A D | OMPIRBuilder.cpp | 3848 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 D | SLPVectorizer.cpp | 984 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()
|