[llvm] [VPlan] Simplify Plan's entry in removeBranchOnConst. (PR #154510)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 16 00:21:53 PDT 2025


================
@@ -570,12 +570,18 @@ class LoopVectorizationPlanner {
 
   /// Update loop metadata and profile info for both the scalar remainder loop
   /// and \p VectorLoop, if it exists. Keeps all loop hints from the original
-  /// loop on the vector loop and replaces vectorizer-specific metadata.
-  void updateLoopMetadataAndProfileInfo(Loop *VectorLoop,
-                                        VPBasicBlock *HeaderVPBB,
-                                        bool VectorizingEpilogue,
-                                        unsigned EstimatedVFxUF,
-                                        bool DisableRuntimeUnroll);
+  /// loop on the vector loop and replaces vectorizer-specific metadata. The
+  /// loop ID of the original loop \p OrigLoopID must be passed, together with
+  /// the average trip count and invocation weight of the original loop (\p
+  /// OrigAverageTripCount and \p OrigLoopInvocationWeight respectively. They
+  /// cannot be retrieved after the plan has been executed, as the original loop
+  /// may have been removed.
----------------
ayalz wrote:

```suggestion
  /// may have been removed).
```

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


More information about the llvm-commits mailing list