[RISCV] Don't reduce vslidedown's VL in rotations
authorLuke Lau <luke@igalia.com>
Wed, 24 May 2023 23:48:56 +0000 (00:48 +0100)
committerLuke Lau <luke@igalia.com>
Thu, 25 May 2023 08:27:55 +0000 (09:27 +0100)
commit6fdc77e4884ba22453c0042ab6b11cf43499958d
treed266b65a4978645907ba548d23597e681c9ad050
parentc4a60c9d34375e73fc2da5e02215eabe4bc90e8f
[RISCV] Don't reduce vslidedown's VL in rotations

Even though we only need to write to the bottom NumElts - Rotation
elements for the vslidedown.vi, we can save an extra vsetivli toggle if
we just keep the wide VL.

(I may be missing something here: is there a reason why we want to explicitly keep the vslidedown narrow?)

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D151390
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rvv/fixed-vector-shuffle-reverse.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fp-shuffles.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int-shuffles.ll
llvm/test/CodeGen/RISCV/rvv/shuffle-reverse.ll