[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:28:04 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:
Yeah, I guess it's trying to find the smallest register class. Which now that I think about it, a vrm2nov0 should be fine if it's always going to be inserted into the upper half of a vrm4, because as you say it can never be v0. So the RISC-V changes LGTM
https://github.com/llvm/llvm-project/pull/107885
More information about the llvm-commits
mailing list