Re: [PATCH v6 6/7] AutoFDO: Enable machine function split optimization for AutoFDO

2024-10-28 Thread Kees Cook
On Fri, Oct 25, 2024 at 10:14:08PM -0700, Rong Xu wrote: > Enable the machine function split optimization for AutoFDO in Clang. > > Machine function split (MFS) is a pass in the Clang compiler that > splits a function into hot and cold parts. The linker groups all > cold blocks across functions to

[PATCH v6 6/7] AutoFDO: Enable machine function split optimization for AutoFDO

2024-10-25 Thread Rong Xu
Enable the machine function split optimization for AutoFDO in Clang. Machine function split (MFS) is a pass in the Clang compiler that splits a function into hot and cold parts. The linker groups all cold blocks across functions together. This decreases hot code fragmentation and improves iCache a