[llvm] [LoopVectorize] Improve Vectorization of Low Trip Count Loops (PR #195823)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 26 05:01:45 PDT 2026


================
@@ -3068,6 +3068,28 @@ LoopVectorizationCostModel::computeMaxVF(ElementCount UserVF, unsigned UserIC) {
       }
     }
 
+    // Allow cases where the ExactTC == (VF * IC) + 1.
----------------
sdesmalen-arm wrote:

nit:
```suggestion
    // Allow cases where the ExactTC == (VF * IC) or ExactTC == (VF * IC) + 1.
```

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


More information about the llvm-commits mailing list