[PATCH] D29153: [BranchFolding] Tail common all identical unreachable blocks
Reid Kleckner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 25 15:29:28 PST 2017
rnk created this revision.
Blocks ending in unreachable are typically cold because they end the
program or throw an exception, so merging them with other identical
blocks is usually profitable because it reduces the size of cold code.
MachineBlockPlacement generally does not arrange to fall through to such
blocks, so commoning these blocks will not introduce additional
unconditional branches.
https://reviews.llvm.org/D29153
Files:
lib/CodeGen/BranchFolding.cpp
test/CodeGen/ARM/tail-opts.ll
test/CodeGen/X86/tail-opts.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29153.85822.patch
Type: text/x-patch
Size: 6814 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170125/de1a7bdf/attachment.bin>
More information about the llvm-commits
mailing list