[Attributor] Ignore BlockAddress users in call site traversal
authorJohannes Doerfert <johannes@jdoerfert.de>
Sat, 2 Nov 2019 03:35:18 +0000 (22:35 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Sat, 2 Nov 2019 06:23:18 +0000 (01:23 -0500)
commit2d77b0cad008eee612e3845769d8b08455a2176c
tree159c81e27ff5b597ba39b67d804f01dc3fa70df7
parent4c56086f8b458bbe8300b0cbd59baaf46ea38d7c
[Attributor] Ignore BlockAddress users in call site traversal

BlockAddress users will not "call" the function so they do not qualify
as call sites in the first place. When we delete a function with
BlockAddress users we need to first remove the body so they are properly
discarded.
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/FunctionAttrs/liveness.ll