[RISCV] Mark vmvNr.v as implicitly using vtype (#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.
This commit is contained in:
Luke Lau 2024-12-04 15:10:57 +08:00 committed by GitHub
parent ff281f7d37
commit 5cd3e97362
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 9 deletions

View File

@ -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;
}
}

View File

@ -19,8 +19,8 @@ body: |
; CHECK: liveins: $v0, $v8, $v9, $v10, $v11
; CHECK-NEXT: {{ $}}
; CHECK-NEXT: renamable $v16m2 = PseudoVMV_V_I_M2 undef renamable $v16m2, 0, -1, 3 /* e8 */, 0 /* tu, mu */, implicit $vl, implicit $vtype
; CHECK-NEXT: $v20m2 = VMV2R_V $v14m2, implicit $v12_v13_v14_v15_v16
; CHECK-NEXT: $v20m2 = VMV2R_V $v14m2, implicit $v12_v13_v14_v15_v16, implicit $vtype
renamable $v16m2 = PseudoVMV_V_I_M2 undef renamable $v16m2, 0, -1, 3 /* e8 */, 0 /* tu, mu */, implicit $vl, implicit $vtype
$v20m2 = VMV2R_V $v14m2, implicit $v12_v13_v14_v15_v16
$v20m2 = VMV2R_V $v14m2, implicit $v12_v13_v14_v15_v16, implicit $vtype
...

View File

@ -293,12 +293,12 @@ vfmv.f.s f7, v16
# CHECK: Iterations: 1
# CHECK-NEXT: Instructions: 280
# CHECK-NEXT: Total Cycles: 523
# CHECK-NEXT: Total Cycles: 524
# CHECK-NEXT: Total uOps: 280
# CHECK: Dispatch Width: 3
# CHECK-NEXT: uOps Per Cycle: 0.54
# CHECK-NEXT: IPC: 0.54
# CHECK-NEXT: uOps Per Cycle: 0.53
# CHECK-NEXT: IPC: 0.53
# CHECK-NEXT: Block RThroughput: 512.0
# CHECK: Instruction Info:

View File

@ -260,12 +260,12 @@ vmv8r.v v8, v16
# CHECK: Iterations: 1
# CHECK-NEXT: Instructions: 256
# CHECK-NEXT: Total Cycles: 237
# CHECK-NEXT: Total Cycles: 255
# CHECK-NEXT: Total uOps: 256
# CHECK: Dispatch Width: 4
# CHECK-NEXT: uOps Per Cycle: 1.08
# CHECK-NEXT: IPC: 1.08
# CHECK-NEXT: uOps Per Cycle: 1.00
# CHECK-NEXT: IPC: 1.00
# CHECK-NEXT: Block RThroughput: 240.0
# CHECK: Instruction Info: