[Attributor] Visit droppable uses in AAIsDead
authorJohannes Doerfert <johannes@jdoerfert.de>
Tue, 15 Mar 2022 17:33:45 +0000 (12:33 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Tue, 5 Apr 2022 23:20:45 +0000 (18:20 -0500)
commit3e8c4366e223ebe6005316930f382efb251f8434
tree9b2de14d95130b17d7200811a4fccf6d84c51dda
parentdd92b29e757da8ba10d7af516e6cf22b9ea625f8
[Attributor] Visit droppable uses in AAIsDead

If we ignore droppable users everything only used in llvm.assume (among
other things) is going to be deleted as dead. This is not helpful.
Instead we want to only delete things we actually don't need anymore. A
follow up will deal with loads in a smarter way.
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/test/Transforms/Attributor/nonnull.ll
llvm/test/Transforms/Attributor/value-simplify-assume.ll