[PATCH] D124187: [RISCV] Print human-readable VTYPE/SEW/LMUL in MIR

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 21 11:18:42 PDT 2022


craig.topper added inline comments.


================
Comment at: llvm/test/CodeGen/RISCV/rvv/addi-scalable-offset.mir:43
+    ; CHECK-NEXT: dead $x0 = PseudoVSETVLI killed renamable $x11, 88 /* e64, m1, ta, mu */, implicit-def $vl, implicit-def $vtype
+    ; CHECK-NEXT: renamable $v8 = PseudoVLE64_V_M1 killed renamable $x10, $noreg, 6 /* e64,m1 */, implicit $vl, implicit $vtype :: (load unknown-size from %ir.pa, align 8)
     ; CHECK-NEXT: $x11 = PseudoReadVLENB
----------------
frasercrmck wrote:
> I wrote this when vsetvli was still printing without spaces between tokens. Presumably this should follow suit and have a space, for consistency?
Is printing m1 redundant with the instruction name?


================
Comment at: llvm/test/CodeGen/RISCV/rvv/emergency-slot.mir:144
   ; CHECK-NEXT:   $x1 = LD $x2, 8 :: (load (s64) from %stack.15)
-  ; CHECK-NEXT:   renamable $v0 = PseudoVSLIDEDOWN_VX_M1 undef renamable $v0, killed renamable $v0, killed renamable $x13, $noreg, 8, implicit $vl, implicit $vtype
-  ; CHECK-NEXT:   renamable $x13 = PseudoVMV_X_S_M1 killed renamable $v0, 8, implicit $vl, implicit $vtype
+  ; CHECK-NEXT:   renamable $v0 = PseudoVSLIDEDOWN_VX_M1 undef renamable $v0, killed renamable $v0, killed renamable $x13, $noreg, 8 /* e256,m1 */, implicit $vl, implicit $vtype
+  ; CHECK-NEXT:   renamable $x13 = PseudoVMV_X_S_M1 killed renamable $v0, 3 /* e8,m1 */, implicit $vl, implicit $vtype
----------------
Was this test not updated when we converted from SEW to Log2SEW?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124187/new/

https://reviews.llvm.org/D124187



More information about the llvm-commits mailing list