[all-commits] [llvm/llvm-project] 1e0c54: AMDGPU: Don't hard error on LDS globals in functions

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Mar 11 12:34:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e0c540360e826d85e7f048d31895c4028e6499a
      https://github.com/llvm/llvm-project/commit/1e0c540360e826d85e7f048d31895c4028e6499a
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-03-11 (Wed, 11 Mar 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUAnnotateKernelFeatures.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/lds-global-non-entry-func.ll
    M llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll

  Log Message:
  -----------
  AMDGPU: Don't hard error on LDS globals in functions

Instead, emit a trap and a warning. We force inlining of this
situation, so any function where this happens should be dead as
indirect or external calls are not yet supported. This should avoid
erroring on dead code.




More information about the All-commits mailing list