summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp
diff options
context:
space:
mode:
authorKang Zhang <shkzhang@cn.ibm.com>2019-07-26 01:58:53 +0000
committerKang Zhang <shkzhang@cn.ibm.com>2019-07-26 01:58:53 +0000
commit5c61015455839a35fe9641759648947f8991477b (patch)
tree07427a78d5a47e2a5bfd735e638241d17c948788 /llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp
parent5620e7530f0767ba8aa4ab0a4667ba785ee6b5a1 (diff)
downloadbcm5719-llvm-5c61015455839a35fe9641759648947f8991477b.tar.gz
bcm5719-llvm-5c61015455839a35fe9641759648947f8991477b.zip
[PowerPC] 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`. Below is an example ``` BB: | BB: XOR 3, 3, 4 | XOR 3, 3, 4 B TBB | B ChainBB ... | ... ChainBB: | ChainBB: B TBB | ADD 3, 3, 4 ... | BLR TBB: | ADD 3, 3, 4 | BLR | ``` Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D63972 llvm-svn: 367080
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud