[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 14:02:20 PDT 2026
================
@@ -0,0 +1,109 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals none --version 6
+;
+; Test that a loop with trip count == VF + 1 is allowed to vectorize
+; on RISCV where under getMinTripCountTailFoldingThreshold(). This
+; produces the required number of vector iteration and one scalar iteration.
+;
+; RUN: opt -S -p loop-vectorize %s -mtriple=riscv64 -mattr=+v -tail-folding-policy=dont-fold-tail | FileCheck %s
----------------
fhahn wrote:
I think the RISCV tests either need their check lines updating or the flag adding.
https://github.com/llvm/llvm-project/pull/195823
More information about the llvm-commits
mailing list