[llvm] [LV] -scalable-vectorization=preferred should not override UserVF=1 (PR #226948)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 28 06:20:49 PDT 2026
================
@@ -132,8 +132,11 @@ LoopVectorizeHints::LoopVectorizeHints(const Loop *L,
// If the flag is set to force any use of scalable vectors, override the loop
// hints.
- if (ForceScalableVectorization.getValue() !=
- LoopVectorizeHints::SK_Unspecified)
+ // However: A preference must not turn a UserVF of 1, used by e.g.
----------------
david-arm wrote:
nit: I think this should probably be `However, a preference ...`
https://github.com/llvm/llvm-project/pull/226948
More information about the llvm-commits
mailing list