[Attributor][NFC] Avoid unnecessary liveness queries
authorJohannes Doerfert <jdoerfert@anl.gov>
Wed, 7 Aug 2019 22:32:38 +0000 (22:32 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Wed, 7 Aug 2019 22:32:38 +0000 (22:32 +0000)
commitd620781872245952ac6e25392815caa096310b6f
treedc44880186524e95ffb0230ca50abad5abd9cd61
parent14a0493a88e8314b03d7d32bb995a675f6499e33
[Attributor][NFC] Avoid unnecessary liveness queries

If we know everything is live there is no need to query for liveness.
Indicating a pessimistic fixpoint will cause the state to be "invalid"
which will cause the Attributor to not return the AAIsDead on request,
which will prevent us from querying isAssumedDead().

llvm-svn: 368223
llvm/lib/Transforms/IPO/Attributor.cpp