[llvm] [RISCV] Mark vmvNr.v as implicitly using vtype (PR #118414)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 2 15:58:34 PST 2024


https://github.com/lukel97 created https://github.com/llvm/llvm-project/pull/118414

This was pointed out in https://github.com/llvm/llvm-project/pull/118283#issuecomment-2512895919. We cannot move these between vtype definitions as they depend on SEW and require vill to be clear.


>From fbd53bcd1c33458f1cc913843dbb7a8401203524 Mon Sep 17 00:00:00 2001
From: Luke Lau <luke at igalia.com>
Date: Tue, 3 Dec 2024 07:56:37 +0800
Subject: [PATCH] [RISCV] Mark vmvNr.v as implicitly using vtype

This was pointed out in https://github.com/llvm/llvm-project/pull/118283#issuecomment-2512895919. We cannot move these between vtype definitions as they depend on SEW and require vill to be clear.
---
 llvm/lib/Target/RISCV/RISCVInstrInfoV.td | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoV.td b/llvm/lib/Target/RISCV/RISCVInstrInfoV.td
index 8e0c4826ac00de..6506b6746b1517 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoV.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoV.td
@@ -1726,7 +1726,7 @@ foreach n = [1, 2, 4, 8] in {
   def VMV#n#R_V  : RVInstV<0b100111, !add(n, -1), OPIVI, (outs vrc:$vd),
                            (ins vrc:$vs2), "vmv" # n # "r.v", "$vd, $vs2">,
                    VMVRSched<n> {
-    let Uses = [];
+    let Uses = [VTYPE];
     let vm = 1;
   }
 }



More information about the llvm-commits mailing list