[llvm] [LV] Vectorize Epilogues for loops with small VF but high IC (PR #108190)
Julian Nagele via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 12 03:18:37 PST 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,
----------------
juliannagele wrote:
Only in the non-SVE case, for SVE it's `getVScaleForTuning(OrigLoop, TTI).value_or(1)`. Which this wouldn't be changing just pulling it out as an argument and passing `IC` for non-SVE.
https://github.com/llvm/llvm-project/pull/108190
More information about the llvm-commits
mailing list