[PATCH] D105590: [amdgpu] Remove the GlobalDCE pass prior to the internalization pass.

Michael Liao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 7 14:01:09 PDT 2021


hliao added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp:434
 
+  GV.removeDeadConstantUsers();
   return !GV.use_empty();
----------------
rampitec wrote:
> Maybe do this in the InternalizePass itself? This is a predicate function and it is not expected to change the IR.
In fact, even there are dead constants removed, the IR won't be changed. IR printer won't be able to print those dead constant users from this GV.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105590/new/

https://reviews.llvm.org/D105590



More information about the llvm-commits mailing list