decomp(jpeg): refine Col y/e declaration allocation #1098

Merged
coah80 merged 1 commits from agent/bittle/col-neighbor-order into main 2026-10-03 12:15:28 +00:00
coah80 commented 2026-10-03 12:14:02 +00:00 (Migrated from github.com)

Focused declaration-only gain

Swap only the existing uninitialized y/e declaration positions in TMCJPEGDEC_IdctBlock_Col. All arithmetic, assignments, types, scopes, accesses, tmp/dst and Lumi source remain unchanged.

  • Col: 92.47577% → 92.90529%, 454/454 instructions
  • Lumi remains 86.178986%, body byte-identical
  • Unit: 90.19972% → 90.47398%
  • Exact/code/data/link totals unchanged; this remains a fuzzy-only improvement

One fixed-center audit compiled baseline plus 1,246 unique eligible swap/move neighbors. The documented rejected d/w order was explicitly excluded. All 1,247 actual snapshots were officially scored without deduplication. Parent independently reproduced every official report and hash and enumerated the authorized set to verify coverage/exclusion. Historical capped structural-ranked searches leave an official-score gap, so some overlap is expected; no global novelty or new-winner fixed-point claim is made.

Independent parent gates

Freshly rebased/rebuilt on 50d1494474. Tested tree 8eba0b00e7.

  • All 1,027 unit/function reports checked with no regressions; only Col improves
  • All current-main whole objects checked: only IDCT changes; merged ATERM improvement preserved
  • Lumi bytes and allocated non-code sections preserved
  • Separate exact-integer Col reference: 8,390 vectors / 25,170 object executions, including 3,936 fitting input/output overlaps and DC/reduced/full transform paths; all 454 instructions covered in candidate/original/baseline
  • Repository JPEG differential suite: 9,456 paired cases pass with ABI checks
  • Pool identical; both-function literal audit has zero errors/skips
  • Full default build/progress, 43U/ok, main/leaf/diff checks pass
  • DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d

Reference/interpreter checks are bounded diagnostics, not formal proof or hardware execution. Evidence: tools/decomp-assist/allhands-jpeg-col-fixed-neighbors.attempts.md. No original binaries/disassembly uploaded. Draft for human review; no merge or auto-merge requested.

Note

Swap y/e declaration order in TMCJPEGDEC_IdctBlock_Col

Reorders the local scalar declarations in TMCJPEGDEC_IdctBlock_Col so e is declared before y. No executable code, types, or control flow changed. Also adds an audit record in allhands-jpeg-col-fixed-neighbors.attempts.md covering the neighbor search, validation, and hashes.

Macroscope summarized 954247f.

## Focused declaration-only gain Swap only the existing uninitialized y/e declaration positions in TMCJPEGDEC_IdctBlock_Col. All arithmetic, assignments, types, scopes, accesses, tmp/dst and Lumi source remain unchanged. - Col: 92.47577% → 92.90529%, 454/454 instructions - Lumi remains 86.178986%, body byte-identical - Unit: 90.19972% → 90.47398% - Exact/code/data/link totals unchanged; this remains a fuzzy-only improvement One fixed-center audit compiled baseline plus 1,246 unique eligible swap/move neighbors. The documented rejected d/w order was explicitly excluded. All 1,247 actual snapshots were officially scored without deduplication. Parent independently reproduced every official report and hash and enumerated the authorized set to verify coverage/exclusion. Historical capped structural-ranked searches leave an official-score gap, so some overlap is expected; no global novelty or new-winner fixed-point claim is made. ## Independent parent gates Freshly rebased/rebuilt on 50d1494474dbfd691ebb707c1a0e5b72d91f9708. Tested tree 8eba0b00e7cc35dbb84e07f85ee16fe52ed83d2f. - All 1,027 unit/function reports checked with no regressions; only Col improves - All current-main whole objects checked: only IDCT changes; merged ATERM improvement preserved - Lumi bytes and allocated non-code sections preserved - Separate exact-integer Col reference: 8,390 vectors / 25,170 object executions, including 3,936 fitting input/output overlaps and DC/reduced/full transform paths; all 454 instructions covered in candidate/original/baseline - Repository JPEG differential suite: 9,456 paired cases pass with ABI checks - Pool identical; both-function literal audit has zero errors/skips - Full default build/progress, 43U/ok, main/leaf/diff checks pass - DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d Reference/interpreter checks are bounded diagnostics, not formal proof or hardware execution. Evidence: tools/decomp-assist/allhands-jpeg-col-fixed-neighbors.attempts.md. No original binaries/disassembly uploaded. Draft for human review; no merge or auto-merge requested. <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Swap `y`/`e` declaration order in `TMCJPEGDEC_IdctBlock_Col` > Reorders the local scalar declarations in `TMCJPEGDEC_IdctBlock_Col` so `e` is declared before `y`. No executable code, types, or control flow changed. Also adds an audit record in [allhands-jpeg-col-fixed-neighbors.attempts.md](https://github.com/coah80/wii-ipl/pull/1098/files#diff-e59d36cfb970d181f3ef7adbec7ed05c6edd60cfd27c2a92c04330e2ea97a2e0) covering the neighbor search, validation, and hashes. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 954247f.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-03 12:15:26 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.