[PATCH] D128773: [BOLT] Add option to randomize function split point

Fabian Parzefall via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 28 17:06:12 PDT 2022


FPar created this revision.
FPar added reviewers: Amir, maksfb, rafauler, 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.

For test purposes, we want to split functions at a random split point
to be able to test different layouts without relying on the profile.
This patch introduces an option, that randomly chooses a split point
to partition blocks of a function into hot and cold regions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128773

Files:
  bolt/include/bolt/Passes/SplitFunctions.h
  bolt/lib/Passes/SplitFunctions.cpp
  bolt/test/X86/split-random.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128773.440815.patch
Type: text/x-patch
Size: 7953 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220629/082a7357/attachment.bin>


More information about the llvm-commits mailing list