[llvm] [LV] Vectorize Epilogues for loops with small VF but high IC (PR #108190)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 4 03:13:39 PDT 2024


================
@@ -1505,7 +1505,10 @@ class LoopVectorizationCostModel {
   /// Returns true if epilogue vectorization is considered profitable, and
   /// false otherwise.
   /// \p VF is the vectorization factor chosen for the original loop.
-  bool isEpilogueVectorizationProfitable(const ElementCount VF) const;
+  /// \p Multiplier is an aditional scaling factor applied to VF before
+  /// comparing to EpilogueVectorizationMinVF.
+  bool isEpilogueVectorizationProfitable(const ElementCount VF,
----------------
fhahn wrote:

`Multiplier` is the UF/IC, right? Might be clearer to call it that to avoid confusion 

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


More information about the llvm-commits mailing list