[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 13:57:42 PDT 2021


hliao added a comment.

Instead of inserting GlobalDCE to remove all constant users, call 'removeDeadConstantUsers' directly before 'use_empty' check. That should be the standard way to check whether a global is still in use.


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