[all-commits] [llvm/llvm-project] cc9283: [amdgpu] Remove the GlobalDCE pass prior to the in...

darkbuck via All-commits all-commits at lists.llvm.org
Thu Jul 8 07:26:20 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc92833f8a3de7f6d4e301a1cb22adf2ffe94df4
      https://github.com/llvm/llvm-project/commit/cc92833f8a3de7f6d4e301a1cb22adf2ffe94df4
  Author: Michael Liao <michael.hliao at gmail.com>
  Date:   2021-07-08 (Thu, 08 Jul 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp

  Log Message:
  -----------
  [amdgpu] Remove the GlobalDCE pass prior to the internalization pass.

- In [D98783](https://reviews.llvm.org/D98783), an extra GlobalDCE pass
  is inserted before the internalization pass to ensure a global
  variable without users could be internalized even if there are dead
  users. Instead of inserting a dedicated optimization pass, the
  dead user checking, i.e. 'use_empty()', should be preceeded with
  constant dead user removal to ensure an accurate result.

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




More information about the All-commits mailing list