[PATCH] D63972: [PowerPC] Do the Early Return for the li and unconditional branch
Zhang Kang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 29 01:45:46 PDT 2019
ZhangKang created this revision.
ZhangKang added reviewers: nemanjai, echristo, steven.zhang, hfinkel, jsji, hiraditya, efriedma.
Herald added a project: LLVM.
This patch will do early return for li and unconditional branch, below is an example:
// # %bb.0: | # %bb.0:
// ... | ...
// | li 3, 100
// b ReturnMBB | blr
// # %bb.1: ====> | # %bb.1:
// ... | ...
// ReturnMBB: | ReturnMBB:
// li 3, 100 | li 3, 100
// blr | blr
https://reviews.llvm.org/D63972
Files:
llvm/lib/Target/PowerPC/PPCEarlyReturn.cpp
llvm/test/CodeGen/PowerPC/early-ret.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63972.207190.patch
Type: text/x-patch
Size: 11106 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190629/6d695b28/attachment.bin>
More information about the llvm-commits
mailing list