[llvm] [BasicBlockSections] Allow mixing of -basic-block-sections with MFS. (PR #117076)
Rahman Lavaee via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 21 14:57:22 PST 2024
================
@@ -128,6 +129,9 @@ static bool isColdBlock(const MachineBasicBlock &MBB,
}
bool MachineFunctionSplitter::runOnMachineFunction(MachineFunction &MF) {
+ // Do not split functions when -basic-block-sections=all is specified.
+ if (MF.getTarget().getBBSectionsType() == llvm::BasicBlockSection::All)
+ return false;
----------------
rlavaee wrote:
Yes. This applies for AutoFDO builds. The idea is to apply Propeller for functions whose BasicBlockAddressMap structure doesn't change since the profile was collected (even though those functions may have been optimized by autofdo).
https://github.com/llvm/llvm-project/pull/117076
More information about the llvm-commits
mailing list