[all-commits] [llvm/llvm-project] e341e9: [BOLT] Add option to randomize function split point

Fabian Parzefall via All-commits all-commits at lists.llvm.org
Wed Jun 29 13:02:20 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e341e9f0948464da621d54343c2a1022c238d9e3
      https://github.com/llvm/llvm-project/commit/e341e9f0948464da621d54343c2a1022c238d9e3
  Author: Fabian Parzefall <parzefall at fb.com>
  Date:   2022-06-29 (Wed, 29 Jun 2022)

  Changed paths:
    M bolt/include/bolt/Passes/SplitFunctions.h
    M bolt/lib/Passes/SplitFunctions.cpp
    A bolt/test/X86/split-random.s

  Log Message:
  -----------
  [BOLT] Add option to randomize function split point

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.

Reviewed By: Amir, yota9

Differential Revision: https://reviews.llvm.org/D128773




More information about the All-commits mailing list