[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)
commit4056e7f02a407971ef837bb2eff4724cfd475c4d
treebe034726e06b9cfaf998f0cc98af2e044950348f
parent4868841ee4ff9a32ce1021ef3335e81e19b4f354
[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.

llvm-svn: 374703
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