[Attributor][Fix] Make sure we do not delete live code
authorJohannes Doerfert <jdoerfert@anl.gov>
Wed, 4 Sep 2019 20:34:52 +0000 (20:34 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Wed, 4 Sep 2019 20:34:52 +0000 (20:34 +0000)
commit7ab525370435ec501260e6083fc2debe7218e9c2
tree91eccf31c22916a62d588857bb00a75304c479f7
parentd581dd50138186fe2c29eff617e7ca5897e3c69e
[Attributor][Fix] Make sure we do not delete live code

Summary: Liveness needs to mark edges, not blocks as dead.

Reviewers: sstefan1, uenoku

Subscribers: hiraditya, bollu, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D67191

llvm-svn: 370975
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/FunctionAttrs/liveness.ll
llvm/test/Transforms/FunctionAttrs/noreturn_async.ll
llvm/test/Transforms/FunctionAttrs/noreturn_sync.ll