decomp(jpeg): improve Lumi outer declaration allocation #1093
Reference in New Issue
Block a user
Delete Branch "agent/bittle/lumi-outer-fuzzy-order"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Focused declaration-only gain
Reorder only the 30 existing uninitialized s32 declarations at the start of TMCJPEGDEC_IdctBlock_Lumi. Preserve tmp/dst, the retained #1091 inner order, all assignments, expressions, types, scopes, accesses and every sibling source byte.
Bounded search and retention
One unchanged official declsearch run hit its 1,250-evaluation cap. All 1,251 actual compiler calls, including tool-final restoration, were recorded and officially scored without deduplication. Retain snapshot 1033 at 86.15953%, rather than the structural tool's final 86.08171%. Parent independently reproduced every saved-object official report and verified snapshot hashes.
Only 467/1,247 neighbors of the tool-final order and 2/1,247 of the retained fuzzy-best order were covered. Neither neighborhood is exhausted; no global optimum claimed. The inner declaration change in #1091 makes this a distinct allocator context from older outer searches.
Independent parent verification
Fresh worktree and full default build on
3dd12f63de. Tested treec8259024c3.Bounded interpreter diagnostics are not a formal proof or hardware execution. Evidence: tools/decomp-assist/allhands-jpeg-lumi-outer-orders.attempts.md. No original binaries/disassembly uploaded. Draft for human review; no merge or auto-merge requested.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.