Improve WADBackupEx zero initialization (97.370995 → 97.38042%) #1139
Reference in New Issue
Block a user
Delete Branch "agent/bittle/wad-backup-zero-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?
Change
Move only the existing outputBuffer = 0 assignment ahead of files = 0. These are distinct nonvolatile automatic locals; no call, branch, escape, cleanup flag, declaration, type or other statement changes.
Measurement
Independent parent verification
Rebased on56f64ea4; tested tree97cad91cb0c6ea7fa66541a28d19de8641902628. Fresh full default43U build and explicit ok pass; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. All1027 whole source objects compared: only WAD differs; all1026 other complete unit records unchanged. No function/exact/data/link regressions. All35 exact functions independently instruction-identical; pool18/18 and literal advisory clean with existing size skips disclosed in log.
Only5 bytes in the entire ELF differ, within three li instructions. All metadata, nontext bytes, symbols, relocation records and39 sibling bodies are byte-identical. Actual instructions18–21 reorder zeroing r21/r24/r25 around an unchanged stw r0,0x68(r1). Independent symbolic execution proves identical registers and identical memory store at the join for arbitrary incoming state, with no pointer-disjointness assumption. No branch enters the window; all instructions outside it and all99 call sites are identical. Target DOL words/direct-call destinations separately checked.
Committed log includes exact scope, every measured order and evidence limitations. Original binaries/raw evidence stay local. This is a fuzzy gain, not exact completion or hardware execution. Draft for review; no merge or auto-merge requested.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.