[llvm] [InitUndef] Don't use largest super class (PR #107885)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 9 11:14:32 PDT 2024


================
@@ -14,9 +14,9 @@ body:             |
     ; CHECK-NEXT: [[INSERT_SUBREG:%[0-9]+]]:vrm4 = INSERT_SUBREG [[DEF]], [[PseudoVLE32_V_M1_]], %subreg.sub_vrm1_0
     ; CHECK-NEXT: dead $x0 = PseudoVSETIVLI 0, 210 /* e32, m4, ta, ma */, implicit-def $vl, implicit-def $vtype
     ; CHECK-NEXT: %pt2:vrm4 = IMPLICIT_DEF
-    ; CHECK-NEXT: [[INIT_UNDEF:%[0-9]+]]:vrm2 = INIT_UNDEF
+    ; CHECK-NEXT: [[INIT_UNDEF:%[0-9]+]]:vrm2nov0 = INIT_UNDEF
----------------
lukel97 wrote:

`TRI->getSubRegisterClass(VRM4, sub_vrm2_0)` gives VRM2, but `TRI->getSubRegisterClass(VRM4, sub_vrm2_1)` is VRM2NoV0 for some reason.

https://github.com/llvm/llvm-project/pull/107885


More information about the llvm-commits mailing list