[Attributor][NFC] Do not delete dead blocks but "clear" them
authorJohannes Doerfert <johannes@jdoerfert.de>
Wed, 30 Oct 2019 22:34:59 +0000 (17:34 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Thu, 31 Oct 2019 05:09:50 +0000 (00:09 -0500)
commit5e442a51bce73f3e69eef022674acfb28224619d
tree8e6f4f773c5019fb64b7449b167fea9b9806d3dd
parentfe799c97fae0729e5952c6a8edf41e67bf60048f
[Attributor][NFC] Do not delete dead blocks but "clear" them

Deleting blocks will require us to deal with dead edges, e.g.,
  `br i1 false, label %live, label %dead`
explicitly. For now we just clear the blocks and move on.
This will be revisited once we actually fold branches.
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/FunctionAttrs/liveness.ll