[all-commits] [llvm/llvm-project] 23f6c8: [amdgpu] Always, instead of mostly, remove unused ...

Jon Chesterfield via All-commits all-commits at lists.llvm.org
Wed Sep 7 10:28:42 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 23f6c8d6354fa78feb5ae636205a2b1de6323c3c
      https://github.com/llvm/llvm-project/commit/23f6c8d6354fa78feb5ae636205a2b1de6323c3c
  Author: Jon Chesterfield <jonathanchesterfield at gmail.com>
  Date:   2022-09-07 (Wed, 07 Sep 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
    M llvm/test/CodeGen/AMDGPU/lower-kernel-lds-super-align.ll
    M llvm/test/CodeGen/AMDGPU/lower-kernel-lds.ll

  Log Message:
  -----------
  [amdgpu] Always, instead of mostly, remove unused LDS symbols

Currently LDS variables are removed by the lower module pass
if they have a use which is caught by the replace with struct control flow.
This makes tests brittle to changes to that control flow which induces
noise when trying to improve lowering. Some tests already check that
variables are removed, while others checked that they are not removed.

LDS variables are not (currently) externally accessible, and if that
changes the machinery which makes them externally accessible will look
like a use. This change therefore breaks no applications.

Reviewed By: rampitec

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




More information about the All-commits mailing list