[llvm] [AMDGPU][True16][CodeGen] update wwm reg sorting check condition (PR #135053)
Christudasan Devadasan via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 21 22:18:20 PDT 2025
================
@@ -0,0 +1,30 @@
+# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
+# RUN: llc -mtriple=amdgcn -mcpu=gfx1100 -mattr=+real-true16 -run-pass=prologepilog %s -o - | FileCheck -check-prefix=GCN %s
+
+---
+name: wwm_skip_shift_16bit_reg
+tracksRegLiveness: true
+noVRegs: true
+machineFunctionInfo:
+ wwmReservedRegs: ['$vgpr0_lo16']
+ isEntryFunction: false
+body: |
+ bb.0:
+ liveins: $sgpr0, $sgpr1
+ ; GCN-LABEL: name: wwm_skip_shift_16bit_reg
+ ; GCN: liveins: $sgpr0, $sgpr1
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: $sgpr2 = S_XOR_SAVEEXEC_B32 -1, implicit-def $exec, implicit-def dead $scc, implicit $exec
+ ; GCN-NEXT: SCRATCH_STORE_DWORD_SADDR killed $vgpr0_lo16, $sp_reg, 0, 0, implicit $exec, implicit $flat_scr :: (store (s16) into %stack.0, addrspace 5)
+ ; GCN-NEXT: $exec_lo = S_MOV_B32 killed $sgpr2
+ ; GCN-NEXT: renamable $vgpr0_hi16 = IMPLICIT_DEF
+ ; GCN-NEXT: $sgpr4 = ENTER_STRICT_WWM -1, implicit-def $exec, implicit-def $scc, implicit $exec
+ ; GCN-NEXT: $vgpr0_lo16 = IMPLICIT_DEF
+ ; GCN-NEXT: $vgpr0_lo16 = V_CNDMASK_B16_t16_e64 0, killed $vgpr0_hi16, 0, $vgpr0_lo16, $sgpr0, 0, implicit $exec
+ ; GCN-NEXT: $exec_lo = EXIT_STRICT_WWM killed renamable $sgpr4
----------------
cdevadas wrote:
wwm spill-restore missing for vgpr0_lo16 at the epilogue.
https://github.com/llvm/llvm-project/pull/135053
More information about the llvm-commits
mailing list