[llvm] [RISCV] Reduce LMUL when index is known when lowering insert_vector_elt (PR #66087)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 27 11:36:48 PDT 2023
================
@@ -550,9 +550,9 @@ define void @insertelt_c6_v8i64_0_add(ptr %x, ptr %y) {
; CHECK-NEXT: vsetivli zero, 8, e64, m4, ta, ma
; CHECK-NEXT: vle64.v v8, (a0)
; CHECK-NEXT: li a2, 6
-; CHECK-NEXT: vsetvli zero, zero, e64, m4, tu, ma
+; CHECK-NEXT: vsetivli zero, 8, e64, m1, tu, ma
----------------
preames wrote:
I ended up commenting on the semantics of AVL > VLMAX over on another thread. See https://github.com/llvm/llvm-project/pull/67419#discussion_r1339044221
End result was that I basically convinced myself I was barking up the wrong tree here. I'm going to take another look at the diff, and unless I spot something else, expect to go ahead and approve this.
https://github.com/llvm/llvm-project/pull/66087
More information about the llvm-commits
mailing list