[PATCH] D97842: [RISCV] Preserve fixed-length VL on insert_vector_elt in more cases
Fraser Cormack via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 3 01:57:05 PST 2021
frasercrmck added inline comments.
================
Comment at: llvm/test/CodeGen/RISCV/rvv/fixed-vectors-insert.ll:13
; RV32-NEXT: vle64.v v26, (a0)
; RV32-NEXT: vsetvli a3, zero, e64,m2,ta,mu
; RV32-NEXT: vmv.v.x v28, a2
----------------
Still using VLMAX here, because we're splatting an i64 using the vector container type. I suppose we either need a custom node or must emit something in the fixed-length type and converting back to the scalable type. I tried that with build_vector and splat_vector but neither worked. build_vector expanded itself, and splat_vector doesn't work on fixed-length vectors (and I'm not sure we want to).
Do you have any ideas, @craig.topper?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97842/new/
https://reviews.llvm.org/D97842
More information about the llvm-commits
mailing list