[PATCH] D127516: RegisterCoalescer: Fix verifier error when merging copy of undef

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 27 11:12:36 PDT 2022


MatzeB added inline comments.


================
Comment at: llvm/test/CodeGen/AMDGPU/undef-subreg-use-after-coalesce.mir:35-36
     ; CHECK-NEXT: dead %0.sub1:vreg_128 = V_MOV_B32_e32 0, implicit $exec
-    ; CHECK-NEXT: S_ENDPGM 0, implicit undef %2.sub1:vreg_64
+    ; CHECK-NEXT: [[DEF:%[0-9]+]]:vreg_64 = IMPLICIT_DEF
+    ; CHECK-NEXT: S_ENDPGM 0, implicit [[DEF]].sub1
     undef %0.sub0:vreg_128 = V_MOV_B32_e32 0, implicit $exec
----------------
This isn't a case of a live-out value though? Shouldn't it continue to use an `undef` flag over an `IMPLICIT_DEF`?


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

https://reviews.llvm.org/D127516



More information about the llvm-commits mailing list