[PATCH] D132423: [BOLT] Fragment all blocks (not just outlineable blocks)

Fabian Parzefall via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 22 17:16:40 PDT 2022


FPar created this revision.
FPar added reviewers: rafauler, maksfb, Amir, yota9.
Herald added a subscriber: ayermolo.
Herald added a project: All.
FPar requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

To enable split strategies that require view of the entire CFG (e.g. to
estimate cost of path from entry block), with this patch, all blocks of
a function are passed to `SplitStrategy::fragment`. Because this might
move non-outlineable blocks into a split fragment, these blocks are
moved back into the main fragment after fragmenting. This also gives
strategies the option to specify, whether empty fragments should be
kept or removed.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132423

Files:
  bolt/include/bolt/Passes/SplitFunctions.h
  bolt/lib/Passes/SplitFunctions.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132423.454658.patch
Type: text/x-patch
Size: 8629 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220823/a4912460/attachment.bin>


More information about the llvm-commits mailing list