[llvm] [RISCV] Avoid vl toggles when lowering vector_splice/experimental_vp_splice (PR #146746)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 2 10:01:59 PDT 2025


topperc wrote:

> This is operating under the assumption that a vl toggle is more expensive than performing the vslidedown at a higher vl on the average microarchitecture.

On X280, the VL toggle is better. The scalar unit is running ahead of the vector unit. The VL has been computed before the vector unit needs it. The VL is used to reduce the number of uops in the vector unit.

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


More information about the llvm-commits mailing list