Skip to content

Simplify ThinLTO handling#152670

Merged
rust-bors[bot] merged 6 commits intorust-lang:mainfrom
bjorn3:lto_refactors12
Feb 24, 2026
Merged

Simplify ThinLTO handling#152670
rust-bors[bot] merged 6 commits intorust-lang:mainfrom
bjorn3:lto_refactors12

Conversation

@bjorn3
Copy link
Copy Markdown
Member

@bjorn3 bjorn3 commented Feb 15, 2026

This reduces the amount of complexity around ThinLTO module buffers. It removes duplication between ModuleBuffer and ThinBuffer (the latter was also used for fat LTO in some cases), clarifies when and where the ThinLTO summary is used (only for --emit thin-link-bitcode, ThinLTO performed by rustc rebuilds the summary every time). This also enables a follow up cleanup to reduce code duplication between red, green and imported codegen units.

Part of rust-lang/compiler-team#908

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-run-make Area: port run-make Makefiles to rmake.rs A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants