[AMDGPU] Report minimum scratch size in code object v5 and later by default
authorAbinav Puthan Purayil <abinavpp@gmail.com>
Thu, 15 Sep 2022 13:10:36 +0000 (18:40 +0530)
committerAbinav Puthan Purayil <abinavpp@gmail.com>
Thu, 29 Sep 2022 04:22:45 +0000 (09:52 +0530)
commit3759398b4bf2d8b72f305dbfa6aa4108a2bfc273
tree70d9f8503d9d0b9dd22f3e092556588e3d6babea
parentb55e76de8bcff138e10d86e999d1fa1d1cf90c0f
[AMDGPU] Report minimum scratch size in code object v5 and later by default

This change sets
-amdgpu-assume-{external-call-stack-size | dynamic-stack-object-size}
options to zero by default for code object v5 and later. The runtime is
expected to adjust the scratch size if the amdhsa_uses_dynamic_stack bit
in the kernel descriptor is set.

Differential Revision: https://reviews.llvm.org/D128346
llvm/docs/AMDGPUUsage.rst
llvm/lib/Target/AMDGPU/AMDGPUResourceUsageAnalysis.cpp
llvm/test/CodeGen/AMDGPU/call-graph-register-usage.ll
llvm/test/CodeGen/AMDGPU/non-entry-alloca.ll
llvm/test/CodeGen/AMDGPU/recursion.ll