[llvm] [RISCV] Avoid vl toggles when lowering vector_splice/experimental_vp_splice and add +minimize-vl tuning feature (PR #146746)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 7 07:43:09 PDT 2025


================
@@ -1695,6 +1695,10 @@ foreach nf = {2-8} in
                        "true", "vlseg"#nf#"eN.v and vsseg"#nf#"eN.v are "
                        "implemented as a wide memory op and shuffle">;
 
+def TuneMinimizeVL
+    : SubtargetFeature<"minimize-vl", "MinimizeVL", "true",
----------------
preames wrote:

I would be tempted to call this something like vl-dependent-latency or something like that.  Something which gets at the *why* we want to minimize VL since I don't think the minimization is unconditional.  

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


More information about the llvm-commits mailing list