[llvm] [RISCV] Support postRA vsetvl insertion pass (PR #70549)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Wed May 15 10:11:00 PDT 2024
================
@@ -590,13 +590,12 @@ define <vscale x 16 x i64> @vp_abs_nxv16i64(<vscale x 16 x i64> %va, <vscale x 1
; CHECK-NEXT: # %bb.1:
; CHECK-NEXT: mv a0, a1
; CHECK-NEXT: .LBB46_2:
-; CHECK-NEXT: vsetvli zero, a0, e64, m8, ta, ma
; CHECK-NEXT: vmv1r.v v0, v24
-; CHECK-NEXT: csrr a0, vlenb
----------------
preames wrote:
This delta is interesting and surprising - in a good way.
I hadn't considered that this change would allow reuse of the vlenb CSR read.
Though there's also a missed opportunity here, both before and after. a0 is vlenb. With etype=e64, and emul-m8, that means the VL here is VLMAX.
https://github.com/llvm/llvm-project/pull/70549
More information about the llvm-commits
mailing list