[PATCH] D103636: [AMDGPU][IndirectCalls] Fix register usage propagation for indirect/external calls

Sebastian Neubauer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 4 07:46:52 PDT 2021


sebastian-ne added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.h:106
 
+  // To memoize max SGPR usage for the module.
+  unsigned ModuleMaxSGPRs = 0;
----------------
This is actually the max SGPR usage for *all non-entrypoint functions* in the module, not for the whole module.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103636/new/

https://reviews.llvm.org/D103636



More information about the llvm-commits mailing list