]> granicus.if.org Git - llvm/commit
Revert [CodeGen] Do the Simple Early Return in block-placement pass to optimize the...
authorReid Kleckner <rnk@google.com>
Fri, 4 Oct 2019 22:24:21 +0000 (22:24 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 4 Oct 2019 22:24:21 +0000 (22:24 +0000)
commit47b3510fce8a6b81b945ad75c62877840183ad95
tree406536727731a60f19273ce97c4f2eb32516eed4
parent98b5e22e78973acfd4f5c6c0fbec323d7851cb69
Revert [CodeGen] Do the Simple Early Return in block-placement pass to optimize the blocks

This reverts r371177 (git commit f879c6875563c0a8cd838f1e13b14dd33558f1f8)

It caused PR43566 by removing empty, address-taken MachineBasicBlocks.
Such blocks may have references from blockaddress or other operands, and
need more consideration to be removed.

See the PR for a test case to use when relanding.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373805 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineBlockPlacement.cpp
test/CodeGen/PowerPC/block-placement.mir