[llvm] [VPlan] Use BlockFrequencyInfo in getPredBlockCostDivisor (PR #158690)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 18 02:00:05 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);
----------------
lukel97 wrote:

We invalidate all the other CFG analyses below on like 10299, and I'm not sure if there's a way to only preserve just one analysis individually. 

I've kicked off a run on llvm-compile-time-tracker.com anyway, will post here when the results for this branch come in.

https://github.com/llvm/llvm-project/pull/158690


More information about the llvm-commits mailing list