# Linux 7.4 disables LLVM Profi to prevent slow builds and performance regressions

> **Key takeaway:** The Linux kernel is disabling LLVM's flow-based profile inference algorithm during AutoFDO builds to avoid extreme compilation times and runtime slowdowns.

**Published:** 2026-11-25T11:27:04+00:00 
**Source:** Phoronix Benchmarks &amp; Drivers 
**Category:** kernel-os 
**Canonical URL:** https://fosswire.org/news/linux-74-disables-llvm-profi-to-prevent-slow-builds-and-perf.html 

## Summary
A new patch merged into the Linux 7.4 kernel disables the use of LLVM's Profi flow-based profile inference algorithm when utilizing AutoFDO (Automatic Feedback-Directed Optimization). This change is intended to resolve critical issues encountered during kernel builds that use Clang 21 or newer.

Previously, the Profi algorithm, which is enabled by default with the '-fprofile-sample-use' flag, caused significant problems for the kernel's build process. The fix will be back-ported to stable kernel branches to ensure consistency across various supported versions.

## Technical impact of disabling LLVM Profi
- **Algorithm Conflict:** The Profi flow-based profile inference algorithm was causing issues with the flow-sensitive discriminators used by the Linux kernel's AutoFDO implementation.
- **Build Performance:** The use of Profi led to pathological compilation times, with some kernel control-flow graphs causing builds to hang or take over 30 minutes to complete.
- **Runtime Efficiency:** Beyond build delays, the algorithm was found to occasionally produce binaries with degraded runtime performance compared to standard optimization paths.
- **Compiler Dependency:** The issue specifically affects environments using LLVM/Clang 21+ where the '-fprofile-sample-use' argument is active.

## Why it matters
This change is vital for developers and distributions that optimize their kernels using AutoFDO and Clang. By disabling this specific inference algorithm, the kernel maintainers ensure that build pipelines remain stable and that the resulting optimized binaries do not suffer from unexpected performance regressions.