A new RFC proposes Multi-Thread Parallel Compilation (MTPC) for LLVM's ThinLTO link-time optimization. Currently, ThinLTO provides module-level parallelism but serializes code generation within individual modules, creating bottlenecks for large modules on modern multi-core processors. MTPC addresses this by splitting modules at the function level to enable intra-module parallel code generation. Early experimental results show up to a 32% total build time reduction for full application builds. Several pull requests are already open to lay the groundwork for this feature.

1m read timeFrom phoronix.com
Post cover image
1.6K Impressions