Repository navigation
[AUTOMATED] fix(analysis): reduce AIF gap scan memory and repeated validation - #799
Merged
Merged
Conversation
[AUTOMATED] Retire consumed gap probes, reuse overlapping validation prefixes, and avoid duplicate SLEIGH parsing while preserving discovery order and first forward decodes. Add authored regression cases and combined-decode equivalence coverage.
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Ps66ZCFPLywq9AKHBuDXNU
Contributor
|
[AUTOMATED] Merged current main into this branch (it merged cleanly; your files are unchanged) and replaced the description's sentence about a workspace-suite failure, since the cargo workspace suite passes in CI on 1744689. Thanks for the change. |
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.
The problem
Selecting one tiny ARM function with aggressive analysis can retain about 1 GiB
and spend most of its time scanning gaps. With built kuna/specs, Python 3 and GNU
ARM binutils, this authored input reproduces it on the unpatched tree:
The same run after the change takes 6.39 s / 138060 KiB with Listing on; both
versions still emit
return 7;. These are single-run observations on this host.The fix
4,000-instruction limit.
for instructions with context commits or delay slots.
Memory use still depends on forward probes retained for later candidates, so the
measured reduction does not establish a universal memory cap. Remaining Listing
and operand-reference costs are outside this change.
The tests
The padding-retention regression fails before this change. Discovery-order,
branch/context and paired-decoding tests pass, as do both parity suites without
changed expectations. The cargo workspace suite passes.