[llvm] [LV] Fix branch weights in epilogue min iteration check block (PR #152534)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 8 02:57:27 PDT 2025


================
@@ -690,9 +690,12 @@ class InnerLoopAndEpilogueVectorizer : public InnerLoopVectorizer {
       const TargetTransformInfo *TTI, AssumptionCache *AC,
       OptimizationRemarkEmitter *ORE, EpilogueLoopVectorizationInfo &EPI,
       LoopVectorizationCostModel *CM, BlockFrequencyInfo *BFI,
-      ProfileSummaryInfo *PSI, GeneratedRTChecks &Checks, VPlan &Plan)
+      ProfileSummaryInfo *PSI, GeneratedRTChecks &Checks, VPlan &Plan,
+      bool ForMainLoop)
----------------
lukel97 wrote:

Nit, if the only two callers of this constructor are `EpilogueVectorizerMainLoop` and `EpilogueVectorizerEpilogueLoop` below, should we just add arguments for VF/MinProfitableTripCount/UnrollFactor and pass them instead of the bool?

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


More information about the llvm-commits mailing list