[PATCH] D156040: [AMDGPU] Add dynamic stack bit info to kernel-resource-usage Rpass output

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 24 09:15:14 PDT 2023


arsenm added inline comments.


================
Comment at: clang/test/Frontend/amdgcn-machine-analysis-remarks.cl:13
+// expected-remark at +2 {{    LDS Size [bytes/block]: 0}}
+// expected-remark at +1 {{    Uses Dynamic Stack: False}}
 __kernel void foo() {
----------------
Print right after the scratch size


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp:1305
                             CurrentProgramInfo.LDSSize);
+  std::string UsesDynamicStackStr =
+      CurrentProgramInfo.DynamicCallStack ? "True" : "False";
----------------
don't need std::string for simple literals? StringRef?


================
Comment at: llvm/test/CodeGen/AMDGPU/resource-optimization-remarks.ll:168
+}
+
+
----------------
Maybe add another that has a static component too


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D156040



More information about the llvm-commits mailing list