[llvm] [GlobalOpt] Handle operators separately when removing GV users (PR #84694)
Anshil Gandhi via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 22 15:40:13 PDT 2024
gandhi56 wrote:
> With these changes, what's the difference between cleanupPointerRootUsers and CleanupConstantGlobalUsers?
`CleanupConstantGlobalUsers` cleans up the trivial users of `GV`, whereas `cleanupPointerRootUsers` handles computation chains leading up to the pointer root `GV`. `cleanupPointerRootUsers` makes a call to `isSafeComputationToRemove` before removing the chain.
https://github.com/llvm/llvm-project/pull/84694
More information about the llvm-commits
mailing list