[all-commits] [llvm/llvm-project] dda829: DAG: Fix expansion of DYNAMIC_STACKALLOC for Stack...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed May 27 16:00:21 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: dda82986f97747350dce4e8ebd65c27a64a37c9d
      https://github.com/llvm/llvm-project/commit/dda82986f97747350dce4e8ebd65c27a64a37c9d
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-05-27 (Wed, 27 May 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

  Log Message:
  -----------
  DAG: Fix expansion of DYNAMIC_STACKALLOC for StackGrowsUp targets

Can't test this since I can't directly use the default expansion for
AMDGPU. It needs to scale the amount by the wave size, rather than use
the raw byte size value.


  Commit: 5e007fe9980cc44e9c4a14c9baf3bdfb012d2c18
      https://github.com/llvm/llvm-project/commit/5e007fe9980cc44e9c4a14c9baf3bdfb012d2c18
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-05-27 (Wed, 27 May 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/lib/Target/AMDGPU/SIISelLowering.h
    A llvm/test/CodeGen/AMDGPU/non-entry-alloca.ll

  Log Message:
  -----------
  AMDGPU: Support non-entry block static sized allocas

OpenMP emits these for some reason, so handle them. Assume these use
4096 bytes by default, with a flag to override this. Also change the
related stack assumption for calls to have a flag.


Compare: https://github.com/llvm/llvm-project/compare/8aa81aaebe53...5e007fe9980c


More information about the All-commits mailing list