]> granicus.if.org Git - llvm/commit
[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)
commit423d592be2adb9d8944cd138acc5641a34c200e1
tree396d74b5fdc4cd8887511beabe4e5d19756be6bc
parenteb4fbb65902c2c9b1b87d9becffa8b55f090aa87
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370975 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/Attributor.cpp
test/Transforms/FunctionAttrs/liveness.ll
test/Transforms/FunctionAttrs/noreturn_async.ll
test/Transforms/FunctionAttrs/noreturn_sync.ll