[llvm] [AMDGPU] Fix for 131386 by reducing implicit definitions on register restoration (PR #133986)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu May 1 04:37:59 PDT 2025
================
@@ -0,0 +1,43 @@
+# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
+# RUN: llc -mtriple=amdgcn--amdhsa -mcpu=gfx942 -verify-machineinstrs -run-pass prologepilog,machine-cp -o - %s | FileCheck -check-prefix=GFX942 %s
+
+--- |
+ define amdgpu_kernel void @agpr_spill_copy() #0 { ret void }
+
+ attributes #0 = { "amdgpu-num-vgpr"="32" }
----------------
arsenm wrote:
amdgpu-num-vgpr is hacky and introduces a lot of edge cases that don't actually work, and I want to remove it. It's not future proof when the number of registers change
https://github.com/llvm/llvm-project/pull/133986
More information about the llvm-commits
mailing list