Repository navigation
Reduce builder validation memory with exact live states - #1420
Merged
Merged
Conversation
sanohiro
marked this pull request as ready for review
October 25, 2026 06:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
R37's inline-builder module exceeded a supervised 3 GiB RSS limit in MIR builder-reservation validation. The exact state inventory retained dead Boolean/SSA histories and allocated dense whole-function vectors for each state.
Project only dead SSA and Boolean facts using conservative CFG may-liveness, and store exact non-default identities/Boolean facts in ordered maps. Keep ownership slots, arguments, reservations, branch semantics and validation transfers unchanged. The authenticated failing module now completes both per-unit checking and MIR emission at about 1.25 GiB; the helper control also passes. The separate native-producer CPU investigation remains outside this change. No language or emitted-code change.
Validation: differential visited-work and Boolean/backedge owners, existing forged/native builder owners, source/import/cache/native driver owners, private 3 GiB/240 s replay, bounded gate and Clippy. Update one stale pre-MIR diagnostic expectation without weakening its invalidation check. Private consumer source remains outside Git. Plan247 records the closure matrix and measurement limits.