[llvm] [AMDGPU] Ensure non-reserved CSR spilled regs are live-in (PR #146427)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 1 19:46:35 PDT 2025


================
@@ -0,0 +1,126 @@
+; Just ensure that llc -O1 does not error out
+; RUN: llc -O1 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 -verify-machineinstrs %s -o - &>/dev/null
----------------
arsenm wrote:

For case like this where you merely need to trigger spilling, it's easier to write an artificial testcase with inline asm to ensure no physical registers are available at some point 

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


More information about the llvm-commits mailing list