]> granicus.if.org Git - llvm/commit
[Attributor][FIX] Avoid splitting blocks if possible
authorJohannes Doerfert <jdoerfert@anl.gov>
Sun, 13 Oct 2019 05:27:09 +0000 (05:27 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Sun, 13 Oct 2019 05:27:09 +0000 (05:27 +0000)
commit40b2b61e65286a64c6881d3070111d5393f7619d
tree0db4ba84f267062bee102c423aeb847c0bc811dc
parentb0bab4587496f9d2d88c5ef4a002e8ed809d48dd
[Attributor][FIX] Avoid splitting blocks if possible

Before, we eagerly split blocks even if it was not necessary, e.g., they
had a single unreachable instruction and only a single predecessor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374703 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