[all-commits] [llvm/llvm-project] cf74ef: [AMDGPU] Limit promote alloca max size in functions

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Fri Sep 24 13:38:53 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cf74ef134c9a8089d8997144d54628952c6d4552
      https://github.com/llvm/llvm-project/commit/cf74ef134c9a8089d8997144d54628952c6d4552
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2021-09-24 (Fri, 24 Sep 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
    M llvm/test/CodeGen/AMDGPU/vector-alloca-limits.ll

  Log Message:
  -----------
  [AMDGPU] Limit promote alloca max size in functions

Non-entry functions have 32 caller saved VGPRs available. If we
promote alloca to consume more registers we will have to spill
CSRs. There is no reason to eliminate scratch access to get
another scratch access instead.

Differential Revision: https://reviews.llvm.org/D110372




More information about the All-commits mailing list