| /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 | EphemeralValuesCache.cpp | 16 CodeMetrics::collectEphemeralValues(&F, &AC, EphValues); in collectEphemeralValues()
|
| H A D | InlineCost.cpp | 481 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 D | ValueTracking.cpp | 461 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 D | EphemeralValuesCache.h | 29 SmallPtrSet<const Value *, 32> EphValues; variable 39 EphValues.clear(); in clear() 45 return EphValues; in ephValues()
|
| H A D | CodeMetrics.h | 83 const SmallPtrSetImpl<const Value *> &EphValues, 90 SmallPtrSetImpl<const Value *> &EphValues); 96 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()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopUnrollAndJamPass.cpp | 153 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 D | LoopUnrollPass.cpp | 358 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 D | DFAJumpThreading.cpp | 802 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 D | LoopDataPrefetch.cpp | 280 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 D | SimpleLoopUnswitch.cpp | 3332 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 D | UnrollLoop.h | 142 const SmallPtrSetImpl<const Value *> &EphValues, 160 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 | 2937 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 D | PPCTargetTransformInfo.cpp | 354 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 D | FunctionSpecialization.cpp | 690 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 D | OMPIRBuilder.cpp | 5691 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 D | SLPVectorizer.cpp | 1798 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()
|