[llvm-branch-commits] [llvm] [MIR][AMDGPU] Serialize register allocation anti-hints (PR #218073)
Matt Arsenault via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Aug 24 02:18:17 PDT 2026
================
@@ -0,0 +1,121 @@
+# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx942 -run-pass=none -o - %s | FileCheck %s
+
+---
+name: single_anti_hint
+tracksRegLiveness: true
+# CHECK-LABEL: name: single_anti_hint
+# CHECK: registers:
+# CHECK: - { id: 3, class: vreg_128_align2, preferred-register: '', flags: [ ],
+# CHECK-NEXT: anti-hints: [ '%1' ] }
+registers:
+ - { id: 0, class: vgpr_32 }
+ - { id: 1, class: vreg_512_align2 }
+ - { id: 2, class: vreg_512_align2 }
+ - { id: 3, class: vreg_128_align2, anti-hints: [ '%1' ] }
----------------
arsenm wrote:
test case with named register
https://github.com/llvm/llvm-project/pull/218073
More information about the llvm-branch-commits
mailing list