[all-commits] [llvm/llvm-project] 375939: [AMDGPU] Report minimum scratch size in code objec...

Abinav Puthan Purayil via All-commits all-commits at lists.llvm.org
Wed Sep 28 21:24:00 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3759398b4bf2d8b72f305dbfa6aa4108a2bfc273
      https://github.com/llvm/llvm-project/commit/3759398b4bf2d8b72f305dbfa6aa4108a2bfc273
  Author: Abinav Puthan Purayil <abinavpp at gmail.com>
  Date:   2022-09-29 (Thu, 29 Sep 2022)

  Changed paths:
    M llvm/docs/AMDGPUUsage.rst
    M llvm/lib/Target/AMDGPU/AMDGPUResourceUsageAnalysis.cpp
    M llvm/test/CodeGen/AMDGPU/call-graph-register-usage.ll
    M llvm/test/CodeGen/AMDGPU/non-entry-alloca.ll
    M llvm/test/CodeGen/AMDGPU/recursion.ll

  Log Message:
  -----------
  [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




More information about the All-commits mailing list