decomp(jpeg): refine Col done/a declaration allocation #1100

Merged
coah80 merged 1 commits from agent/bittle/col-done-a-order into main 2026-10-03 12:32:28 +00:00
coah80 commented 2026-10-03 12:30:56 +00:00 (Migrated from github.com)

Minimal declaration-only gain

Swap only existing uninitialized done/a declarations in Col. All assignments, arithmetic, scopes, types, accesses, tmp/dst, Lumi and configuration remain unchanged.

  • Col:92.90529% → 92.927315%;454/454 instructions
  • Lumi remains86.178986%, body byte-identical
  • Unit:90.47398% → 90.488045%; exact/code/data/link measures unchanged

One fixed-center audit really compiled baseline plus all1,247 unique swap/move neighbors, without adaptive center changes. All1,248 immutable snapshots were officially scored. First best0012 is the minimal swap;27 orders tie. The old absolute rejected d/w order is absent from this new set, so no order was excluded. No broader historical novelty or new-winner fixed point is claimed.

Independent parent gates

Rebased and freshly rebuilt on d901e5cf88. Tested tree987d673a2edfe19ad486d47693a7c6936309c29f.

  • All1,248 official snapshot reports/hashes independently reproduced; complete fixed-neighbor set independently enumerated
  • All1,027 current-main reports/functions checked, no regressions; whole-object comparison changes only IDCT
  • Lumi bytes, allocated non-code sections and all exact/data/link measures preserved
  • Separate integer reference:8,390 vectors/25,170 executions, including3,936 in-allocation overlaps;454/454 coverage in candidate/original/baseline
  • JPEG differential suite:9,456 paired cases pass with ABI checks
  • Pool identical; both-function literal audit zero errors/skips
  • Full default build/progress,43U/ok, main/leaf/diff checks pass
  • DOL SHA1:26116613f624061ba99c8d1a299aaa6efa85670d

Bounded interpreter/reference diagnostics are not formal proof or hardware execution. Evidence:tools/decomp-assist/allhands-jpeg-col-next-neighbors.attempts.md. No original binary/disassembly uploaded. Draft for human review; no merge or auto-merge requested.

Note

Reorder a before done in TMCJPEGDEC_IdctBlock_Col declarations

Moves the a declaration above done in TMCJPEGDEC_IdctBlock_Col in idct_block_var.c. The declarations and function body are otherwise unchanged. Adds an audit report at allhands-jpeg-col-next-neighbors.attempts.md covering the declaration-order neighborhood search, compiler and object snapshots, and test evidence.

Macroscope summarized f6175f2.

## Minimal declaration-only gain Swap only existing uninitialized done/a declarations in Col. All assignments, arithmetic, scopes, types, accesses, tmp/dst, Lumi and configuration remain unchanged. - Col:92.90529% → 92.927315%;454/454 instructions - Lumi remains86.178986%, body byte-identical - Unit:90.47398% → 90.488045%; exact/code/data/link measures unchanged One fixed-center audit really compiled baseline plus all1,247 unique swap/move neighbors, without adaptive center changes. All1,248 immutable snapshots were officially scored. First best0012 is the minimal swap;27 orders tie. The old absolute rejected d/w order is absent from this new set, so no order was excluded. No broader historical novelty or new-winner fixed point is claimed. ## Independent parent gates Rebased and freshly rebuilt on d901e5cf88abb6d62bd1a094926a7ecb25b29201. Tested tree987d673a2edfe19ad486d47693a7c6936309c29f. - All1,248 official snapshot reports/hashes independently reproduced; complete fixed-neighbor set independently enumerated - All1,027 current-main reports/functions checked, no regressions; whole-object comparison changes only IDCT - Lumi bytes, allocated non-code sections and all exact/data/link measures preserved - Separate integer reference:8,390 vectors/25,170 executions, including3,936 in-allocation overlaps;454/454 coverage in candidate/original/baseline - JPEG differential suite:9,456 paired cases pass with ABI checks - Pool identical; both-function literal audit zero errors/skips - Full default build/progress,43U/ok, main/leaf/diff checks pass - DOL SHA1:26116613f624061ba99c8d1a299aaa6efa85670d Bounded interpreter/reference diagnostics are not formal proof or hardware execution. Evidence:tools/decomp-assist/allhands-jpeg-col-next-neighbors.attempts.md. No original binary/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] > ### Reorder `a` before `done` in `TMCJPEGDEC_IdctBlock_Col` declarations > Moves the `a` declaration above `done` in `TMCJPEGDEC_IdctBlock_Col` in [idct_block_var.c](https://github.com/coah80/wii-ipl/pull/1100/files#diff-a274164d13198c046348fb647cba8dc885eaf013132027c97c324a7004d5242a). The declarations and function body are otherwise unchanged. Adds an audit report at [allhands-jpeg-col-next-neighbors.attempts.md](https://github.com/coah80/wii-ipl/pull/1100/files#diff-e1beff61f46d0e4bc4a645e1254814a1d37ec3ab2f8fa7f5f66bdf09143d6d02) covering the declaration-order neighborhood search, compiler and object snapshots, and test evidence. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized f6175f2.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-03 12:32: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.