[all-commits] [llvm/llvm-project] 7a62a5: [AMDGPU] Legalize initialized LDS variables

Christudasan Devadasan via All-commits all-commits at lists.llvm.org
Thu Sep 23 19:54:55 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a62a5b56d670c4e152159740cd7fc4030a9470f
      https://github.com/llvm/llvm-project/commit/7a62a5b56d670c4e152159740cd7fc4030a9470f
  Author: Christudasan Devadasan <Christudasan.Devadasan at amd.com>
  Date:   2021-09-23 (Thu, 23 Sep 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/lds-zero-initializer.ll
    M llvm/test/CodeGen/AMDGPU/lds-zero-initializer.ll

  Log Message:
  -----------
  [AMDGPU] Legalize initialized LDS variables

We don't allow an initializer for LDS variables
and there is an early abort during instruction
selection. This patch legalizes them by ignoring
the init values. During assembly emission, proper
error reporting already exists for such instances.

Reviewed By: arsenm

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




More information about the All-commits mailing list