Linux 7.4 disables LLVM's Profi in AutoFDO builds over slowdowns and long compile times
The Linux 7.4 kernel change disables use of LLVM's Profi[1] flow-based profile inference algorithm when building with AutoFDO[2]. Profi has been used by default since Clang[3] 21 when the -fprofile-sample-use argument is passed, and this caused problems for kernel builds made with LLVM/Clang and AutoFDO.
Profi has known issues with flow-sensitive discriminators, which the kernel's AutoFDO uses. This can make the resulting binary slower, and in some cases builds took 30+ minutes or hung on certain kernel control-flow graphs.
The patch was merged in the Kbuild fixes pull request for Linux 7.4 and is set to be back-ported to stable kernel branches. No performance numbers were given in the patch.
Read the original phoronix.comDiscussion
Sources
-
Phoronix
Linux 7.4 Disables LLVM Profi Usage To Avoid Performance Hit, Pathological Build Times


