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)
commit5b96d4655c868ce5a4df4b472b90b543344b5386
treeed44bbbc68f43a07632f3bd44c55f5fa535ba23a
parent5eec1a9d324f3380602cd4e4e355347701916659
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.

llvm-svn: 368560
llvm/lib/CodeGen/MachineBlockPlacement.cpp
llvm/test/CodeGen/PowerPC/block-placement-1.mir
llvm/test/CodeGen/PowerPC/block-placement.mir