]> granicus.if.org Git - llvm/commit
Revert r368509 "[CodeGen] Do the Simple Early Return in block-placement pass to optim...
authorHans Wennborg <hans@hanshq.net>
Mon, 12 Aug 2019 12:43:51 +0000 (12:43 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 12 Aug 2019 12:43:51 +0000 (12:43 +0000)
commitf03f515e82cd86793603aea5db6dcfcb962cb345
tree9662c1f6d7e8126fa00791e405a2ea0e03907881
parent79e40bae3fc217700d34dfae6f2ac1b1a6ac44a7
Revert r368509 "[CodeGen] Do the Simple Early Return in block-placement pass to optimize the blocks"

> In `block-placement` pass, it will create some patterns for unconditional we can do the simple early retrun.
> But the `early-ret` pass is before `block-placement`, we don't want to run it again.
> This patch is to do the simple early return to optimize the blocks at the last of `block-placement`.
>
> Reviewed By: efriedma
>
> Differential Revision: https://reviews.llvm.org/D63972

This also revertes follow-ups r368514 and r368532.

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