Skip to content

fix(compiler): move register tracking side-effect out of ZEN_ASSERT in copyParam#474

Open
ys8888john wants to merge 2 commits into
DTVMStack:mainfrom
ys8888john:fix-p2-h09-bug
Open

fix(compiler): move register tracking side-effect out of ZEN_ASSERT in copyParam#474
ys8888john wants to merge 2 commits into
DTVMStack:mainfrom
ys8888john:fix-p2-h09-bug

Conversation

@ys8888john
Copy link
Copy Markdown
Contributor

…n copyParam

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

  • N
  • Y

2. What is the scope of this PR (e.g. component or file name):

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

  • Affects user behaviors
  • Contains CI/CD configuration changes
  • Contains documentation changes
  • Contains experimental features
  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

  • N
  • Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

  • Unit test
  • Integration test
  • Benchmark (add benchmark stats below)
  • Manual test (add detailed scripts or steps below)
  • Other

6. Release note

None

@ys8888john ys8888john changed the title fix(compiler): move register tracking side-effect out of ZEN_ASSERT i… fix(compiler): move register tracking side-effect out of ZEN_ASSERT in copyParam Apr 14, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 14, 2026

⚡ Performance Regression Check Results

✅ Performance Check Passed (interpreter)

Performance Benchmark Results (threshold: 25%)

Benchmark Baseline (us) Current (us) Change Status
total/main/blake2b_huff/8415nulls 1.51 1.51 +0.3% PASS
total/main/blake2b_huff/empty 0.02 0.02 +0.5% PASS
total/main/blake2b_shifts/8415nulls 11.49 11.69 +1.7% PASS
total/main/sha1_divs/5311 5.06 5.06 +0.1% PASS
total/main/sha1_divs/empty 0.06 0.06 -0.4% PASS
total/main/sha1_shifts/5311 2.88 2.90 +1.0% PASS
total/main/sha1_shifts/empty 0.04 0.04 -0.2% PASS
total/main/snailtracer/benchmark 52.90 52.87 -0.1% PASS
total/main/structarray_alloc/nfts_rank 0.96 0.97 +0.5% PASS
total/main/swap_math/insufficient_liquidity 0.00 0.00 +0.8% PASS
total/main/swap_math/received 0.00 0.00 +0.4% PASS
total/main/swap_math/spent 0.00 0.00 +0.1% PASS
total/main/weierstrudel/1 0.28 0.28 +0.1% PASS
total/main/weierstrudel/15 3.13 3.13 +0.1% PASS
total/micro/JUMPDEST_n0/empty 1.31 1.32 +0.9% PASS
total/micro/jump_around/empty 0.09 0.09 +1.5% PASS
total/micro/loop_with_many_jumpdests/empty 19.96 19.97 +0.0% PASS
total/micro/memory_grow_mload/by1 0.09 0.09 -3.7% PASS
total/micro/memory_grow_mload/by16 0.10 0.10 -2.3% PASS
total/micro/memory_grow_mload/by32 0.11 0.11 +1.6% PASS
total/micro/memory_grow_mload/nogrow 0.08 0.09 +4.7% PASS
total/micro/memory_grow_mstore/by1 0.10 0.10 +4.1% PASS
total/micro/memory_grow_mstore/by16 0.11 0.11 +0.7% PASS
total/micro/memory_grow_mstore/by32 0.12 0.12 +1.1% PASS
total/micro/memory_grow_mstore/nogrow 0.10 0.09 -2.3% PASS
total/micro/signextend/one 0.23 0.23 +1.1% PASS
total/micro/signextend/zero 0.23 0.23 +1.1% PASS
total/synth/ADD/b0 2.01 1.98 -1.4% PASS
total/synth/ADD/b1 2.00 2.00 +0.0% PASS
total/synth/ADDRESS/a0 4.83 4.83 -0.1% PASS
total/synth/ADDRESS/a1 5.45 5.45 -0.0% PASS
total/synth/AND/b0 1.71 1.71 +0.1% PASS
total/synth/AND/b1 1.72 1.72 -0.1% PASS
total/synth/BYTE/b0 6.12 6.12 +0.1% PASS
total/synth/BYTE/b1 4.77 4.75 -0.3% PASS
total/synth/CALLDATASIZE/a0 3.58 3.58 +0.0% PASS
total/synth/CALLDATASIZE/a1 3.64 3.60 -1.0% PASS
total/synth/CALLER/a0 4.83 4.83 +0.1% PASS
total/synth/CALLER/a1 5.41 5.41 -0.1% PASS
total/synth/CALLVALUE/a0 3.76 3.51 -6.8% PASS
total/synth/CALLVALUE/a1 3.76 3.52 -6.4% PASS
total/synth/CODESIZE/a0 3.98 3.99 +0.1% PASS
total/synth/CODESIZE/a1 4.00 4.00 -0.2% PASS
total/synth/DUP1/d0 1.31 1.30 -0.2% PASS
total/synth/DUP1/d1 1.39 1.39 +0.0% PASS
total/synth/DUP10/d0 1.31 1.31 +0.2% PASS
total/synth/DUP10/d1 1.39 1.16 -17.1% PASS
total/synth/DUP11/d0 1.11 1.31 +17.6% PASS
total/synth/DUP11/d1 1.22 1.16 -4.5% PASS
total/synth/DUP12/d0 1.31 1.31 +0.0% PASS
total/synth/DUP12/d1 1.39 1.16 -16.8% PASS
total/synth/DUP13/d0 1.07 1.24 +16.2% PASS
total/synth/DUP13/d1 1.26 1.17 -7.9% PASS
total/synth/DUP14/d0 1.30 1.30 +0.1% PASS
total/synth/DUP14/d1 1.32 1.24 -6.1% PASS
total/synth/DUP15/d0 1.15 1.31 +13.1% PASS
total/synth/DUP15/d1 1.18 1.20 +1.3% PASS
total/synth/DUP16/d0 1.11 1.31 +17.4% PASS
total/synth/DUP16/d1 1.39 1.16 -16.9% PASS
total/synth/DUP2/d0 1.19 1.23 +3.7% PASS
total/synth/DUP2/d1 1.15 1.38 +19.2% PASS
total/synth/DUP3/d0 1.27 1.31 +2.8% PASS
total/synth/DUP3/d1 1.27 1.39 +9.9% PASS
total/synth/DUP4/d0 1.31 1.31 -0.0% PASS
total/synth/DUP4/d1 1.15 1.16 +0.0% PASS
total/synth/DUP5/d0 1.31 1.31 +0.1% PASS
total/synth/DUP5/d1 1.26 1.28 +1.7% PASS
total/synth/DUP6/d0 1.31 1.31 +0.2% PASS
total/synth/DUP6/d1 1.16 1.28 +10.3% PASS
total/synth/DUP7/d0 1.31 1.31 -0.1% PASS
total/synth/DUP7/d1 1.16 1.20 +2.8% PASS
total/synth/DUP8/d0 1.31 1.31 -0.0% PASS
total/synth/DUP8/d1 1.22 1.28 +5.7% PASS
total/synth/DUP9/d0 1.07 1.31 +21.9% PASS
total/synth/DUP9/d1 1.39 1.16 -17.1% PASS
total/synth/EQ/b0 2.76 2.76 +0.0% PASS
total/synth/EQ/b1 1.34 1.34 -0.0% PASS
total/synth/GAS/a0 3.83 3.81 -0.6% PASS
total/synth/GAS/a1 3.85 3.84 -0.1% PASS
total/synth/GT/b0 2.61 2.63 +0.6% PASS
total/synth/GT/b1 1.56 1.56 +0.1% PASS
total/synth/ISZERO/u0 1.15 1.15 +0.0% PASS
total/synth/JUMPDEST/n0 1.31 1.39 +6.1% PASS
total/synth/LT/b0 2.61 2.63 +0.9% PASS
total/synth/LT/b1 1.56 1.56 +0.0% PASS
total/synth/MSIZE/a0 4.24 4.26 +0.5% PASS
total/synth/MSIZE/a1 4.83 4.83 -0.2% PASS
total/synth/MUL/b0 5.32 5.33 +0.1% PASS
total/synth/MUL/b1 5.39 5.39 +0.1% PASS
total/synth/NOT/u0 1.82 1.82 +0.0% PASS
total/synth/OR/b0 1.64 1.65 +0.7% PASS
total/synth/OR/b1 1.72 1.71 -0.0% PASS
total/synth/PC/a0 3.34 3.58 +7.2% PASS
total/synth/PC/a1 3.60 3.59 -0.4% PASS
total/synth/PUSH1/p0 1.15 1.15 -0.1% PASS
total/synth/PUSH1/p1 1.39 1.40 +0.2% PASS
total/synth/PUSH10/p0 1.15 1.00 -13.3% PASS
total/synth/PUSH10/p1 1.41 1.41 -0.3% PASS
total/synth/PUSH11/p0 1.15 1.15 +0.1% PASS
total/synth/PUSH11/p1 1.42 1.41 -0.3% PASS
total/synth/PUSH12/p0 0.91 0.92 +1.6% PASS
total/synth/PUSH12/p1 1.41 1.41 -0.0% PASS
total/synth/PUSH13/p0 1.07 1.15 +7.6% PASS
total/synth/PUSH13/p1 1.41 1.41 -0.3% PASS
total/synth/PUSH14/p0 1.08 1.07 -0.5% PASS
total/synth/PUSH14/p1 1.41 1.41 -0.3% PASS
total/synth/PUSH15/p0 1.15 1.15 +0.1% PASS
total/synth/PUSH15/p1 1.47 1.51 +2.6% PASS
total/synth/PUSH16/p0 0.91 1.15 +26.7% PASS
total/synth/PUSH16/p1 1.41 1.41 -0.2% PASS
total/synth/PUSH17/p0 1.15 0.91 -20.9% PASS
total/synth/PUSH17/p1 1.42 1.41 -0.3% PASS
total/synth/PUSH18/p0 1.15 1.15 -0.0% PASS
total/synth/PUSH18/p1 1.43 1.42 -0.3% PASS
total/synth/PUSH19/p0 0.91 1.05 +15.9% PASS
total/synth/PUSH19/p1 1.42 1.43 +1.0% PASS
total/synth/PUSH2/p0 0.99 1.15 +16.3% PASS
total/synth/PUSH2/p1 1.40 1.40 -0.2% PASS
total/synth/PUSH20/p0 1.15 1.00 -13.0% PASS
total/synth/PUSH20/p1 1.42 1.42 +0.1% PASS
total/synth/PUSH21/p0 1.07 1.15 +7.7% PASS
total/synth/PUSH21/p1 1.42 1.41 -0.3% PASS
total/synth/PUSH22/p0 1.15 1.15 +0.2% PASS
total/synth/PUSH22/p1 1.42 1.42 +0.0% PASS
total/synth/PUSH23/p0 1.15 1.07 -7.0% PASS
total/synth/PUSH23/p1 1.47 1.42 -2.9% PASS
total/synth/PUSH24/p0 1.07 1.15 +7.8% PASS
total/synth/PUSH24/p1 1.42 1.44 +1.1% PASS
total/synth/PUSH25/p0 1.15 1.15 +0.0% PASS
total/synth/PUSH25/p1 1.42 1.43 +0.6% PASS
total/synth/PUSH26/p0 0.91 1.15 +26.5% PASS
total/synth/PUSH26/p1 1.43 1.43 +0.4% PASS
total/synth/PUSH27/p0 1.15 0.91 -21.0% PASS
total/synth/PUSH27/p1 1.42 1.42 -0.3% PASS
total/synth/PUSH28/p0 1.15 1.15 +0.0% PASS
total/synth/PUSH28/p1 1.43 1.42 -0.5% PASS
total/synth/PUSH29/p0 1.15 0.99 -13.9% PASS
total/synth/PUSH29/p1 1.43 1.42 -0.1% PASS
total/synth/PUSH3/p0 1.15 1.15 +0.1% PASS
total/synth/PUSH3/p1 1.41 1.40 -0.9% PASS
total/synth/PUSH30/p0 0.96 0.99 +2.7% PASS
total/synth/PUSH30/p1 1.43 1.42 -0.7% PASS
total/synth/PUSH31/p0 0.91 0.91 +0.0% PASS
total/synth/PUSH31/p1 1.53 1.53 +0.2% PASS
total/synth/PUSH32/p0 1.15 1.15 +0.1% PASS
total/synth/PUSH32/p1 1.43 1.44 +0.6% PASS
total/synth/PUSH4/p0 0.99 0.99 -0.2% PASS
total/synth/PUSH4/p1 1.41 1.41 -0.0% PASS
total/synth/PUSH5/p0 1.07 0.91 -15.0% PASS
total/synth/PUSH5/p1 1.41 1.40 -0.5% PASS
total/synth/PUSH6/p0 1.15 0.99 -14.1% PASS
total/synth/PUSH6/p1 1.41 1.41 -0.1% PASS
total/synth/PUSH7/p0 0.92 1.15 +25.0% PASS
total/synth/PUSH7/p1 1.41 1.41 +0.1% PASS
total/synth/PUSH8/p0 1.07 1.15 +7.6% PASS
total/synth/PUSH8/p1 1.41 1.41 +0.1% PASS
total/synth/PUSH9/p0 1.15 1.15 -0.0% PASS
total/synth/PUSH9/p1 1.41 1.41 -0.0% PASS
total/synth/RETURNDATASIZE/a0 3.79 3.99 +5.2% PASS
total/synth/RETURNDATASIZE/a1 4.00 4.00 -0.1% PASS
total/synth/SAR/b0 3.79 3.79 -0.0% PASS
total/synth/SAR/b1 4.32 4.31 -0.2% PASS
total/synth/SGT/b0 2.60 2.60 -0.0% PASS
total/synth/SGT/b1 1.56 1.56 -0.1% PASS
total/synth/SHL/b0 3.04 3.04 +0.0% PASS
total/synth/SHL/b1 1.56 1.56 -0.1% PASS
total/synth/SHR/b0 2.93 2.94 +0.3% PASS
total/synth/SHR/b1 1.52 1.52 -0.0% PASS
total/synth/SIGNEXTEND/b0 3.58 3.59 +0.1% PASS
total/synth/SIGNEXTEND/b1 3.48 3.72 +6.7% PASS
total/synth/SLT/b0 2.62 2.62 +0.2% PASS
total/synth/SLT/b1 1.48 1.48 -0.0% PASS
total/synth/SUB/b0 1.98 1.97 -0.5% PASS
total/synth/SUB/b1 1.97 1.97 -0.0% PASS
total/synth/SWAP1/s0 1.49 1.49 +0.0% PASS
total/synth/SWAP10/s0 1.50 1.50 -0.0% PASS
total/synth/SWAP11/s0 1.50 1.50 -0.0% PASS
total/synth/SWAP12/s0 1.51 1.51 +0.0% PASS
total/synth/SWAP13/s0 1.51 1.51 -0.0% PASS
total/synth/SWAP14/s0 1.51 1.51 -0.2% PASS
total/synth/SWAP15/s0 1.51 1.51 -0.0% PASS
total/synth/SWAP16/s0 1.51 1.51 +0.2% PASS
total/synth/SWAP2/s0 1.49 1.49 +0.2% PASS
total/synth/SWAP3/s0 1.49 1.50 +0.2% PASS
total/synth/SWAP4/s0 1.49 1.49 +0.0% PASS
total/synth/SWAP5/s0 1.50 1.50 -0.1% PASS
total/synth/SWAP6/s0 1.50 1.50 -0.0% PASS
total/synth/SWAP7/s0 1.50 1.50 +0.1% PASS
total/synth/SWAP8/s0 1.50 1.50 +0.1% PASS
total/synth/SWAP9/s0 1.50 1.50 -0.1% PASS
total/synth/XOR/b0 1.55 1.55 +0.0% PASS
total/synth/XOR/b1 1.55 1.56 +0.3% PASS
total/synth/loop_v1 4.45 4.45 +0.1% PASS
total/synth/loop_v2 4.45 4.46 +0.1% PASS

Summary: 194 benchmarks, 0 regressions


✅ Performance Check Passed (multipass)

Performance Benchmark Results (threshold: 25%)

Benchmark Baseline (us) Current (us) Change Status
total/main/blake2b_huff/8415nulls 1.03 1.03 +0.2% PASS
total/main/blake2b_huff/empty 0.02 0.02 -1.3% PASS
total/main/blake2b_shifts/8415nulls 5.20 4.96 -4.6% PASS
total/main/sha1_divs/5311 0.61 0.62 +0.4% PASS
total/main/sha1_divs/empty 0.01 0.01 +0.5% PASS
total/main/sha1_shifts/5311 0.57 0.57 +0.3% PASS
total/main/sha1_shifts/empty 0.01 0.01 -0.1% PASS
total/main/snailtracer/benchmark 36.05 35.53 -1.4% PASS
total/main/structarray_alloc/nfts_rank 0.28 0.28 -1.0% PASS
total/main/swap_math/insufficient_liquidity 0.00 0.00 -1.0% PASS
total/main/swap_math/received 0.00 0.00 +1.0% PASS
total/main/swap_math/spent 0.00 0.00 +2.1% PASS
total/main/weierstrudel/1 0.26 0.26 +0.0% PASS
total/main/weierstrudel/15 3.02 3.01 -0.2% PASS
total/micro/JUMPDEST_n0/empty 0.00 0.00 -0.2% PASS
total/micro/jump_around/empty 0.03 0.03 +0.1% PASS
total/micro/loop_with_many_jumpdests/empty 0.00 0.00 +0.3% PASS
total/micro/memory_grow_mload/by1 0.01 0.01 +1.0% PASS
total/micro/memory_grow_mload/by16 0.01 0.01 +0.3% PASS
total/micro/memory_grow_mload/by32 0.01 0.01 +0.5% PASS
total/micro/memory_grow_mload/nogrow 0.01 0.01 +0.5% PASS
total/micro/memory_grow_mstore/by1 0.01 0.01 +0.0% PASS
total/micro/memory_grow_mstore/by16 0.01 0.01 +0.1% PASS
total/micro/memory_grow_mstore/by32 0.01 0.01 +0.3% PASS
total/micro/memory_grow_mstore/nogrow 0.01 0.01 +1.1% PASS
total/micro/signextend/one 0.08 0.08 +1.2% PASS
total/micro/signextend/zero 0.08 0.08 +1.7% PASS
total/synth/ADD/b0 0.00 0.00 -0.0% PASS
total/synth/ADD/b1 0.00 0.00 -0.0% PASS
total/synth/ADDRESS/a0 0.15 0.15 +0.1% PASS
total/synth/ADDRESS/a1 0.15 0.15 -0.0% PASS
total/synth/AND/b0 0.00 0.00 -0.5% PASS
total/synth/AND/b1 0.00 0.00 +0.0% PASS
total/synth/BYTE/b0 0.00 0.00 -0.1% PASS
total/synth/BYTE/b1 0.00 0.00 -0.0% PASS
total/synth/CALLDATASIZE/a0 0.07 0.07 +0.1% PASS
total/synth/CALLDATASIZE/a1 0.07 0.07 +0.1% PASS
total/synth/CALLER/a0 0.20 0.20 +0.5% PASS
total/synth/CALLER/a1 0.20 0.20 +0.3% PASS
total/synth/CALLVALUE/a0 0.19 0.19 +0.6% PASS
total/synth/CALLVALUE/a1 0.18 0.19 +0.6% PASS
total/synth/CODESIZE/a0 0.07 0.07 -0.0% PASS
total/synth/CODESIZE/a1 0.07 0.07 +0.1% PASS
total/synth/DUP1/d0 0.00 0.00 -0.2% PASS
total/synth/DUP1/d1 0.00 0.00 +0.0% PASS
total/synth/DUP10/d0 0.00 0.00 -0.2% PASS
total/synth/DUP10/d1 0.00 0.00 -0.3% PASS
total/synth/DUP11/d0 0.00 0.00 -0.1% PASS
total/synth/DUP11/d1 0.00 0.00 +0.1% PASS
total/synth/DUP12/d0 0.00 0.00 -0.1% PASS
total/synth/DUP12/d1 0.00 0.00 +0.1% PASS
total/synth/DUP13/d0 0.00 0.00 -0.1% PASS
total/synth/DUP13/d1 0.00 0.00 +0.0% PASS
total/synth/DUP14/d0 0.00 0.00 -0.1% PASS
total/synth/DUP14/d1 0.00 0.00 +0.1% PASS
total/synth/DUP15/d0 0.00 0.00 -0.0% PASS
total/synth/DUP15/d1 0.00 0.00 +0.0% PASS
total/synth/DUP16/d0 0.00 0.00 -0.1% PASS
total/synth/DUP16/d1 0.00 0.00 -0.0% PASS
total/synth/DUP2/d0 0.00 0.00 -0.2% PASS
total/synth/DUP2/d1 0.00 0.00 -0.3% PASS
total/synth/DUP3/d0 0.00 0.00 -0.1% PASS
total/synth/DUP3/d1 0.00 0.00 -0.0% PASS
total/synth/DUP4/d0 0.00 0.00 -0.0% PASS
total/synth/DUP4/d1 0.00 0.00 -0.0% PASS
total/synth/DUP5/d0 0.00 0.00 -0.2% PASS
total/synth/DUP5/d1 0.00 0.00 +0.1% PASS
total/synth/DUP6/d0 0.00 0.00 -0.2% PASS
total/synth/DUP6/d1 0.00 0.00 -0.2% PASS
total/synth/DUP7/d0 0.00 0.00 -0.0% PASS
total/synth/DUP7/d1 0.00 0.00 -0.0% PASS
total/synth/DUP8/d0 0.00 0.00 +0.0% PASS
total/synth/DUP8/d1 0.00 0.00 -0.0% PASS
total/synth/DUP9/d0 0.00 0.00 +0.1% PASS
total/synth/DUP9/d1 0.00 0.00 -0.5% PASS
total/synth/EQ/b0 0.00 0.00 -0.1% PASS
total/synth/EQ/b1 0.00 0.00 +0.0% PASS
total/synth/GAS/a0 0.86 0.86 -0.0% PASS
total/synth/GAS/a1 0.86 0.86 +0.0% PASS
total/synth/GT/b0 0.00 0.00 -0.1% PASS
total/synth/GT/b1 0.00 0.00 -0.1% PASS
total/synth/ISZERO/u0 0.00 0.00 +0.2% PASS
total/synth/JUMPDEST/n0 0.00 0.00 -0.3% PASS
total/synth/LT/b0 0.00 0.00 -0.0% PASS
total/synth/LT/b1 0.00 0.00 -0.1% PASS
total/synth/MSIZE/a0 0.00 0.00 -0.0% PASS
total/synth/MSIZE/a1 0.00 0.00 +0.0% PASS
total/synth/MUL/b0 0.00 0.00 -0.0% PASS
total/synth/MUL/b1 0.00 0.00 -0.1% PASS
total/synth/NOT/u0 0.00 0.00 -0.0% PASS
total/synth/OR/b0 0.00 0.00 -0.4% PASS
total/synth/OR/b1 0.00 0.00 +0.0% PASS
total/synth/PC/a0 0.00 0.00 -0.4% PASS
total/synth/PC/a1 0.00 0.00 -0.5% PASS
total/synth/PUSH1/p0 0.00 0.00 -0.0% PASS
total/synth/PUSH1/p1 0.00 0.00 -0.0% PASS
total/synth/PUSH10/p0 0.00 0.00 +0.3% PASS
total/synth/PUSH10/p1 0.00 0.00 -0.1% PASS
total/synth/PUSH11/p0 0.00 0.00 +0.1% PASS
total/synth/PUSH11/p1 0.00 0.00 -0.1% PASS
total/synth/PUSH12/p0 0.00 0.00 -0.1% PASS
total/synth/PUSH12/p1 0.00 0.00 +0.1% PASS
total/synth/PUSH13/p0 0.00 0.00 +0.1% PASS
total/synth/PUSH13/p1 0.00 0.00 -0.0% PASS
total/synth/PUSH14/p0 0.00 0.00 -0.0% PASS
total/synth/PUSH14/p1 0.00 0.00 -0.1% PASS
total/synth/PUSH15/p0 0.00 0.00 -0.0% PASS
total/synth/PUSH15/p1 0.00 0.00 +0.0% PASS
total/synth/PUSH16/p0 0.00 0.00 -0.1% PASS
total/synth/PUSH16/p1 0.00 0.00 +0.0% PASS
total/synth/PUSH17/p0 0.00 0.00 -0.2% PASS
total/synth/PUSH17/p1 0.00 0.00 -0.0% PASS
total/synth/PUSH18/p0 0.00 0.00 +0.0% PASS
total/synth/PUSH18/p1 0.00 0.00 +0.0% PASS
total/synth/PUSH19/p0 0.00 0.00 -0.0% PASS
total/synth/PUSH19/p1 0.00 0.00 -0.1% PASS
total/synth/PUSH2/p0 0.00 0.00 -0.3% PASS
total/synth/PUSH2/p1 0.00 0.00 -0.2% PASS
total/synth/PUSH20/p0 0.00 0.00 -0.1% PASS
total/synth/PUSH20/p1 0.00 0.00 -0.1% PASS
total/synth/PUSH21/p0 0.00 0.00 -0.1% PASS
total/synth/PUSH21/p1 0.00 0.00 +0.1% PASS
total/synth/PUSH22/p0 0.87 0.88 +0.2% PASS
total/synth/PUSH22/p1 1.22 1.21 -0.9% PASS
total/synth/PUSH23/p0 0.89 0.88 -0.8% PASS
total/synth/PUSH23/p1 1.20 1.21 +0.4% PASS
total/synth/PUSH24/p0 0.93 0.93 +0.0% PASS
total/synth/PUSH24/p1 1.21 1.24 +2.7% PASS
total/synth/PUSH25/p0 0.89 0.92 +3.7% PASS
total/synth/PUSH25/p1 1.22 1.22 -0.5% PASS
total/synth/PUSH26/p0 0.93 0.93 +0.5% PASS
total/synth/PUSH26/p1 1.24 1.26 +1.5% PASS
total/synth/PUSH27/p0 0.90 0.90 -0.1% PASS
total/synth/PUSH27/p1 1.27 1.23 -3.3% PASS
total/synth/PUSH28/p0 0.89 0.93 +4.5% PASS
total/synth/PUSH28/p1 1.22 1.22 -0.5% PASS
total/synth/PUSH29/p0 0.89 0.89 -0.1% PASS
total/synth/PUSH29/p1 1.22 1.22 -0.2% PASS
total/synth/PUSH3/p0 0.00 0.00 -0.1% PASS
total/synth/PUSH3/p1 0.00 0.00 -0.1% PASS
total/synth/PUSH30/p0 0.94 0.96 +1.6% PASS
total/synth/PUSH30/p1 1.22 1.21 -0.2% PASS
total/synth/PUSH31/p0 0.90 0.90 -1.0% PASS
total/synth/PUSH31/p1 1.27 1.26 -0.1% PASS
total/synth/PUSH32/p0 0.93 0.90 -3.8% PASS
total/synth/PUSH32/p1 1.30 1.22 -6.2% PASS
total/synth/PUSH4/p0 0.00 0.00 -0.1% PASS
total/synth/PUSH4/p1 0.00 0.00 -0.1% PASS
total/synth/PUSH5/p0 0.00 0.00 -0.1% PASS
total/synth/PUSH5/p1 0.00 0.00 -0.0% PASS
total/synth/PUSH6/p0 0.00 0.00 -0.0% PASS
total/synth/PUSH6/p1 0.00 0.00 +0.2% PASS
total/synth/PUSH7/p0 0.00 0.00 -0.0% PASS
total/synth/PUSH7/p1 0.00 0.00 -0.5% PASS
total/synth/PUSH8/p0 0.00 0.00 -0.1% PASS
total/synth/PUSH8/p1 0.00 0.00 -0.2% PASS
total/synth/PUSH9/p0 0.00 0.00 -0.2% PASS
total/synth/PUSH9/p1 0.00 0.00 -0.2% PASS
total/synth/RETURNDATASIZE/a0 0.03 0.03 +0.0% PASS
total/synth/RETURNDATASIZE/a1 0.03 0.03 +0.0% PASS
total/synth/SAR/b0 0.00 0.00 -0.1% PASS
total/synth/SAR/b1 0.00 0.00 -0.2% PASS
total/synth/SGT/b0 0.00 0.00 -0.0% PASS
total/synth/SGT/b1 0.00 0.00 -0.3% PASS
total/synth/SHL/b0 0.00 0.00 -0.1% PASS
total/synth/SHL/b1 0.00 0.00 -0.0% PASS
total/synth/SHR/b0 0.00 0.00 -0.0% PASS
total/synth/SHR/b1 0.00 0.00 -0.0% PASS
total/synth/SIGNEXTEND/b0 0.00 0.00 -0.0% PASS
total/synth/SIGNEXTEND/b1 0.00 0.00 +0.0% PASS
total/synth/SLT/b0 0.00 0.00 -0.0% PASS
total/synth/SLT/b1 0.00 0.00 -0.0% PASS
total/synth/SUB/b0 0.00 0.00 -0.0% PASS
total/synth/SUB/b1 0.00 0.00 +0.1% PASS
total/synth/SWAP1/s0 0.00 0.00 +0.1% PASS
total/synth/SWAP10/s0 0.00 0.00 +0.1% PASS
total/synth/SWAP11/s0 0.00 0.00 -0.2% PASS
total/synth/SWAP12/s0 0.00 0.00 +0.0% PASS
total/synth/SWAP13/s0 0.00 0.00 +0.1% PASS
total/synth/SWAP14/s0 0.00 0.00 -0.3% PASS
total/synth/SWAP15/s0 0.00 0.00 +0.1% PASS
total/synth/SWAP16/s0 0.00 0.00 +0.1% PASS
total/synth/SWAP2/s0 0.00 0.00 +0.1% PASS
total/synth/SWAP3/s0 0.00 0.00 -0.4% PASS
total/synth/SWAP4/s0 0.00 0.00 -0.0% PASS
total/synth/SWAP5/s0 0.00 0.00 -0.1% PASS
total/synth/SWAP6/s0 0.00 0.00 -0.0% PASS
total/synth/SWAP7/s0 0.00 0.00 -0.1% PASS
total/synth/SWAP8/s0 0.00 0.00 +0.0% PASS
total/synth/SWAP9/s0 0.00 0.00 -0.1% PASS
total/synth/XOR/b0 0.00 0.00 +0.1% PASS
total/synth/XOR/b1 0.00 0.00 -0.1% PASS
total/synth/loop_v1 1.20 1.20 +0.2% PASS
total/synth/loop_v2 1.11 1.11 -0.3% PASS

Summary: 194 benchmarks, 0 regressions


@zoowii zoowii requested a review from Copilot April 16, 2026 16:55
Opnd);
if (Kind == WASMTypeKind::INTEGER) {
ZEN_ASSERT(GpRegUsed |= (1 << Reg));
GpRegUsed |= (1 << Reg);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add change doc and test cases for this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change doc added. The original ZEN_ASSERT(GpRegUsed |= (1 << Reg)) was always true so bitwise OR with (1 << Reg) always yields a non-zero result so the assert had no real checking value. The fix simply moves the side-effect out of the assert. Since GpRegUsed is only consumed by another assert (the conflict check above), there's no observable difference in generated code between the buggy and fixed versions, so no test case can meaningfully validate this change.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates single-pass compiler call-argument handling to avoid relying on ZEN_ASSERT for a side-effect when tracking used registers during copyParam.

Changes:

  • Move register-used bitmask updates (GpRegUsed / FpRegUsed) out of ZEN_ASSERT and into normal statements.
  • Preserve existing argument move logic while ensuring register tracking always executes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ys8888john ys8888john force-pushed the fix-p2-h09-bug branch 2 times, most recently from 071817d to 1e49fea Compare April 23, 2026 08:10
@zoowii
Copy link
Copy Markdown
Contributor

zoowii commented May 8, 2026

@ys8888john conflict

…n copyParam

Co-authored-by: Aone Copilot <copilot@aone.alibaba-inc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants