[llvm] [LoopVectorize] Improve Vectorization of Low Trip Count Loops (PR #195823)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 17 13:58:20 PDT 2026
================
@@ -415,6 +415,11 @@ static cl::opt<bool> EnableEarlyExitVectorizationWithSideEffects(
cl::desc("Enable vectorization of early exit loops with uncountable exits "
"and side effects"));
+static cl::opt<unsigned> LowTripCountLoopBodySizeLimit(
+ "low-trip-count-loop-body-size-limit", cl::init(20), cl::Hidden,
+ cl::desc("Minimum loop size for loops trip counts "
+ "below tail folding threshold"));
----------------
fhahn wrote:
nit: maybe slightly more descriptive, something like
```suggestion
cl::desc("Minimum number of instruction to vectorize loops with trip counts below tail folding threshold"));
```
https://github.com/llvm/llvm-project/pull/195823
More information about the llvm-commits
mailing list