[llvm] [VPlan] Use BlockFrequencyInfo in getPredBlockCostDivisor (PR #158690)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 18 01:25:01 PST 2025
================
@@ -10265,9 +10272,7 @@ PreservedAnalyses LoopVectorizePass::run(Function &F,
auto &MAMProxy = AM.getResult<ModuleAnalysisManagerFunctionProxy>(F);
PSI = MAMProxy.getCachedResult<ProfileSummaryAnalysis>(*F.getParent());
- BFI = nullptr;
- if (PSI && PSI->hasProfileSummary())
- BFI = &AM.getResult<BlockFrequencyAnalysis>(F);
+ BFI = &AM.getResult<BlockFrequencyAnalysis>(F);
----------------
fhahn wrote:
Now that we are unconditionally request BFI, could we preserve it? Not sure how expensive it is to re-compute from scratch.
https://github.com/llvm/llvm-project/pull/158690
More information about the llvm-commits
mailing list