[llvm-branch-commits] [llvm] [AMDGPU] Apply occupancy-aware register allocation anti-hints (PR #218074)

Matt Arsenault via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Sep 13 05:26:42 PDT 2026


================
@@ -9,8 +9,11 @@
   define amdgpu_kernel void @anti_hints_suppressed_by_current_budget() #0 { ret void }
   define amdgpu_kernel void @anti_hints_unified_agpr_headroom () #1 { ret void }
   define amdgpu_kernel void @anti_hints_unified_agpr_budget () #1 { ret void }
+  define amdgpu_kernel void @anti_hints_high_vgpr_counts_for_budget() #0 { ret void }
+  define amdgpu_kernel void @anti_hints_av_class_applied_to_agpr() #2 { ret void }
   attributes #0 = { nounwind "amdgpu-agpr-alloc"="0" "frame-pointer"="none"}
   attributes #1 = { nounwind "frame-pointer"="none"}
+  attributes #2 = { nounwind "frame-pointer"="none" "amdgpu-num-vgpr"="20" "amdgpu-agpr-alloc"="36"}
----------------
arsenm wrote:

Don't introduce new uses of amdgpu-num-vgpr, it is being removed 

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


More information about the llvm-branch-commits mailing list