[llvm] [AMDGPU] Don't DEALLOC_VGPRS from callable functions (PR #72245)

Jannik Silvanus via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 06:00:10 PST 2023


================
@@ -1924,6 +1924,10 @@ bool isChainCC(CallingConv::ID CC) {
   }
 }
 
+bool isCallableCC(CallingConv::ID CC) {
+  return !isEntryFunctionCC(CC) && !isChainCC(CC);
----------------
jasilvanus wrote:

Why are we excluding the chain CC here?

With a chain CC, the previous function that chain-called us could have used scratch.

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


More information about the llvm-commits mailing list