[BOLT] Add split all blocks strategy
authorFabian Parzefall <parzefall@fb.com>
Fri, 19 Aug 2022 04:50:35 +0000 (21:50 -0700)
committerFabian Parzefall <parzefall@fb.com>
Fri, 19 Aug 2022 04:55:07 +0000 (21:55 -0700)
commitf428db7a005704b1ccba3f7947ab7bae5b13ec77
treeeb226e071f7729546d44fc94dfb745daea40154e
parent0f74d191d12e1807d291c8db937f1bb89cfe7caa
[BOLT] Add split all blocks strategy

This adds a function splitting strategy that splits each outlineable
basic block into its own fragment. This is exposed through a new command
line option `--split-strategy`.

Reviewed By: rafauler

Differential Revision: https://reviews.llvm.org/D129827
bolt/include/bolt/Passes/SplitFunctions.h
bolt/lib/Passes/SplitFunctions.cpp
bolt/test/X86/split-all.s [new file with mode: 0644]
bolt/test/X86/split-random.s