]> granicus.if.org Git - llvm/commit
[CodeGen] Do the Simple Early Return in block-placement pass to optimize the blocks
authorKang Zhang <shkzhang@cn.ibm.com>
Sat, 10 Aug 2019 09:58:52 +0000 (09:58 +0000)
committerKang Zhang <shkzhang@cn.ibm.com>
Sat, 10 Aug 2019 09:58:52 +0000 (09:58 +0000)
commiteaa074be158749f5f03630f83793191019c35aa1
treeb275a5c79462704c532e9d913105697917eb199a
parentb098798e94b4c280f704ec0c73a8d8129e63a04a
[CodeGen] Do the Simple Early Return in block-placement pass to optimize the blocks

Summary:

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

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