[Attributor][FIX] Delete all unreachable static functions
authorJohannes Doerfert <johannes@jdoerfert.de>
Thu, 10 Sep 2020 05:03:32 +0000 (00:03 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Wed, 28 Oct 2020 03:07:55 +0000 (22:07 -0500)
commit1c2531c9e16412ba2bb2f8e594d7effa48e9d22e
tree74394cea0d1f2588b808457a14da8954fe029a1b
parentbfe05b1aff1b8e5dd625f905879d7425c8460989
[Attributor][FIX] Delete all unreachable static functions

Before we used to only mark unreachable static functions as dead if all
uses were known dead. Now we optimistically assume uses to be dead until
proven otherwise.
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/Attributor/ArgumentPromotion/2008-09-08-CGUpdateSelfEdge.ll
llvm/test/Transforms/Attributor/IPConstantProp/deadarg.ll
llvm/test/Transforms/Attributor/liveness.ll