[Attributor][FIX] Restrict cross-SCC call deletion
authorJohannes Doerfert <johannes@jdoerfert.de>
Sat, 15 Feb 2020 02:06:34 +0000 (20:06 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Sat, 15 Feb 2020 03:44:46 +0000 (21:44 -0600)
commit137c99a6a5cd419086824035c1498baddbd46962
treec7ad147597713e91a33d0573545393f8a597501a
parent40b30672182829a053a243c54947c362ce49f68e
[Attributor][FIX] Restrict cross-SCC call deletion

If we know a call was not needed we might have ended up deleting it even
if it was in a different SCC. This prevents us from doing so.
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/Attributor/ArgumentPromotion/live_called_from_dead.ll
llvm/test/Transforms/Attributor/range.ll