[llvm] [AMDGPU][True16][CodeGen] update wwm reg sorting check condition (PR #135053)

Christudasan Devadasan via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 26 23:47:09 PDT 2025


================
@@ -0,0 +1,28 @@
+# 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_reg_skip_sort_16bit
+tracksRegLiveness: true
+machineFunctionInfo:
+  isEntryFunction: true
----------------
cdevadas wrote:

Ah my bad. The shift-back is needed to ensure the wwm-regs are finally in the lowest range. This is needed for both entry functions and device functions. But their CSR spills/restores will be ignored for entry functions. 

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


More information about the llvm-commits mailing list