Skip to content

refactor(evm): extract shared jump target resolution pass into bytecode cache#462

Open
ZR74 wants to merge 3 commits into
DTVMStack:mainfrom
ZR74:pr-cfg
Open

refactor(evm): extract shared jump target resolution pass into bytecode cache#462
ZR74 wants to merge 3 commits into
DTVMStack:mainfrom
ZR74:pr-cfg

Conversation

@ZR74
Copy link
Copy Markdown
Contributor

@ZR74 ZR74 commented Apr 11, 2026

…de cache

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

Copilot AI review requested due to automatic review settings April 11, 2026 08:31
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

This PR refactors EVM bytecode analysis by extracting a shared “constant jump target resolution” pass into the bytecode cache, so both the SPP gas optimizer and the MIR/SSA liftability analysis can consume the same precomputed results.

Changes:

  • Add a ResolvedJumpTargets map to EVMBytecodeCache and populate it during buildBytecodeCache() using an abstract stack simulation pass.
  • Update SPP gas-chunk construction to use the pre-resolved jump targets instead of local PUSH+JUMP pattern matching.
  • Plumb the shared resolved-target map through the compiler frontend context into EVMAnalyzer as a fallback resolution source.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/evm/evm_cache.h Adds cached storage for resolved constant jump targets.
src/evm/evm_cache.cpp Implements shared abstract-stack jump resolution and consumes it in SPP gas chunk building.
src/compiler/evm_frontend/evm_mir_compiler.h Extends frontend context API to carry resolved jump-target map pointer.
src/compiler/evm_frontend/evm_analyzer.h Adds optional fallback jump-target resolution via shared cache.
src/compiler/evm_compiler.cpp Passes module cache’s resolved jump targets into the frontend context.
src/action/evm_bytecode_visitor.h Wires frontend context’s resolved targets into EVMAnalyzer before analysis.

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

Comment thread src/evm/evm_cache.cpp
Comment thread src/evm/evm_cache.cpp Outdated
Comment thread src/compiler/evm_frontend/evm_analyzer.h
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 11, 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.46 1.38 -5.7% PASS
total/main/blake2b_huff/empty 0.02 0.02 -5.1% PASS
total/main/blake2b_shifts/8415nulls 10.08 10.07 -0.1% PASS
total/main/sha1_divs/5311 4.40 4.33 -1.7% PASS
total/main/sha1_divs/empty 0.05 0.05 -2.6% PASS
total/main/sha1_shifts/5311 2.33 2.32 -0.4% PASS
total/main/sha1_shifts/empty 0.03 0.03 -0.9% PASS
total/main/snailtracer/benchmark 49.30 49.59 +0.6% PASS
total/main/structarray_alloc/nfts_rank 0.92 0.88 -4.3% PASS
total/main/swap_math/insufficient_liquidity 0.00 0.00 -2.3% PASS
total/main/swap_math/received 0.00 0.00 -1.4% PASS
total/main/swap_math/spent 0.00 0.00 -1.2% PASS
total/main/weierstrudel/1 0.23 0.23 +0.4% PASS
total/main/weierstrudel/15 2.52 2.49 -1.0% PASS
total/micro/JUMPDEST_n0/empty 1.36 1.34 -1.7% PASS
total/micro/jump_around/empty 0.04 0.04 +1.8% PASS
total/micro/loop_with_many_jumpdests/empty 20.71 20.53 -0.9% PASS
total/micro/memory_grow_mload/by1 0.09 0.08 -2.6% PASS
total/micro/memory_grow_mload/by16 0.10 0.09 -3.6% PASS
total/micro/memory_grow_mload/by32 0.10 0.10 -1.0% PASS
total/micro/memory_grow_mload/nogrow 0.09 0.08 -4.0% PASS
total/micro/memory_grow_mstore/by1 0.09 0.09 +2.3% PASS
total/micro/memory_grow_mstore/by16 0.10 0.10 -0.2% PASS
total/micro/memory_grow_mstore/by32 0.10 0.10 +0.1% PASS
total/micro/memory_grow_mstore/nogrow 0.09 0.09 +0.0% PASS
total/micro/signextend/one 0.23 0.23 +0.5% PASS
total/micro/signextend/zero 0.23 0.23 +1.2% PASS
total/synth/ADD/b0 1.42 1.45 +1.5% PASS
total/synth/ADD/b1 1.21 1.18 -3.0% PASS
total/synth/ADDRESS/a0 6.03 5.96 -1.2% PASS
total/synth/ADDRESS/a1 6.27 6.22 -0.8% PASS
total/synth/AND/b0 1.33 1.33 +0.3% PASS
total/synth/AND/b1 1.17 1.15 -1.9% PASS
total/synth/BYTE/b0 4.61 4.62 +0.2% PASS
total/synth/BYTE/b1 3.76 3.75 -0.3% PASS
total/synth/CALLDATASIZE/a0 3.21 3.02 -6.1% PASS
total/synth/CALLDATASIZE/a1 3.18 3.12 -1.8% PASS
total/synth/CALLER/a0 5.99 5.95 -0.6% PASS
total/synth/CALLER/a1 6.24 6.22 -0.3% PASS
total/synth/CALLVALUE/a0 3.46 3.25 -6.1% PASS
total/synth/CALLVALUE/a1 3.32 3.25 -2.1% PASS
total/synth/CODESIZE/a0 3.76 3.77 +0.1% PASS
total/synth/CODESIZE/a1 3.77 3.62 -4.1% PASS
total/synth/DUP1/d0 0.86 0.72 -16.7% PASS
total/synth/DUP1/d1 0.84 0.76 -10.0% PASS
total/synth/DUP10/d0 0.85 0.73 -13.7% PASS
total/synth/DUP10/d1 0.84 0.70 -17.1% PASS
total/synth/DUP11/d0 0.85 0.71 -16.8% PASS
total/synth/DUP11/d1 0.84 0.70 -16.8% PASS
total/synth/DUP12/d0 0.85 0.70 -17.0% PASS
total/synth/DUP12/d1 0.84 0.70 -17.0% PASS
total/synth/DUP13/d0 0.85 0.72 -15.3% PASS
total/synth/DUP13/d1 0.84 0.70 -16.9% PASS
total/synth/DUP14/d0 0.84 0.71 -16.4% PASS
total/synth/DUP14/d1 0.86 0.70 -18.5% PASS
total/synth/DUP15/d0 0.84 0.69 -17.5% PASS
total/synth/DUP15/d1 0.84 0.70 -17.0% PASS
total/synth/DUP16/d0 0.84 0.70 -16.4% PASS
total/synth/DUP16/d1 0.84 0.70 -16.8% PASS
total/synth/DUP2/d0 0.85 0.72 -15.6% PASS
total/synth/DUP2/d1 0.84 0.70 -16.9% PASS
total/synth/DUP3/d0 0.85 0.71 -16.2% PASS
total/synth/DUP3/d1 0.84 0.70 -16.6% PASS
total/synth/DUP4/d0 0.85 0.71 -16.5% PASS
total/synth/DUP4/d1 0.85 0.70 -18.3% PASS
total/synth/DUP5/d0 0.85 0.71 -16.2% PASS
total/synth/DUP5/d1 0.84 0.70 -17.0% PASS
total/synth/DUP6/d0 0.85 0.73 -14.2% PASS
total/synth/DUP6/d1 0.84 0.70 -17.0% PASS
total/synth/DUP7/d0 0.85 0.73 -14.5% PASS
total/synth/DUP7/d1 0.84 0.70 -16.8% PASS
total/synth/DUP8/d0 0.84 0.72 -14.3% PASS
total/synth/DUP8/d1 0.84 0.70 -17.1% PASS
total/synth/DUP9/d0 0.85 0.71 -16.7% PASS
total/synth/DUP9/d1 0.85 0.70 -18.5% PASS
total/synth/EQ/b0 2.30 2.29 -0.3% PASS
total/synth/EQ/b1 1.30 1.28 -1.4% PASS
total/synth/GAS/a0 3.62 3.39 -6.3% PASS
total/synth/GAS/a1 3.47 3.40 -2.0% PASS
total/synth/GT/b0 2.17 2.17 -0.0% PASS
total/synth/GT/b1 1.06 1.03 -3.1% PASS
total/synth/ISZERO/u0 1.21 0.77 -36.3% PASS
total/synth/JUMPDEST/n0 1.36 1.34 -1.8% PASS
total/synth/LT/b0 2.22 2.22 +0.2% PASS
total/synth/LT/b1 1.07 1.00 -6.7% PASS
total/synth/MSIZE/a0 4.16 4.16 -0.2% PASS
total/synth/MSIZE/a1 4.51 4.42 -1.9% PASS
total/synth/MUL/b0 4.42 4.41 -0.0% PASS
total/synth/MUL/b1 4.68 4.69 +0.1% PASS
total/synth/NOT/u0 1.13 1.14 +0.9% PASS
total/synth/OR/b0 1.34 1.34 +0.1% PASS
total/synth/OR/b1 1.19 1.21 +1.7% PASS
total/synth/PC/a0 3.14 3.22 +2.7% PASS
total/synth/PC/a1 3.17 3.10 -2.5% PASS
total/synth/PUSH1/p0 0.96 0.96 -0.2% PASS
total/synth/PUSH1/p1 1.04 0.96 -7.9% PASS
total/synth/PUSH10/p0 0.98 0.97 -0.7% PASS
total/synth/PUSH10/p1 1.07 0.98 -7.6% PASS
total/synth/PUSH11/p0 0.98 0.97 -1.3% PASS
total/synth/PUSH11/p1 1.06 0.98 -7.8% PASS
total/synth/PUSH12/p0 0.98 0.97 -0.3% PASS
total/synth/PUSH12/p1 1.07 0.99 -7.6% PASS
total/synth/PUSH13/p0 0.97 0.97 +0.2% PASS
total/synth/PUSH13/p1 1.07 0.99 -7.0% PASS
total/synth/PUSH14/p0 0.97 0.97 -0.1% PASS
total/synth/PUSH14/p1 1.07 0.99 -7.7% PASS
total/synth/PUSH15/p0 0.98 0.97 -0.9% PASS
total/synth/PUSH15/p1 1.07 0.99 -7.9% PASS
total/synth/PUSH16/p0 0.99 0.98 -1.1% PASS
total/synth/PUSH16/p1 1.07 1.00 -6.8% PASS
total/synth/PUSH17/p0 0.98 0.97 -1.0% PASS
total/synth/PUSH17/p1 1.07 1.04 -3.1% PASS
total/synth/PUSH18/p0 0.97 0.98 +0.4% PASS
total/synth/PUSH18/p1 1.07 1.00 -6.9% PASS
total/synth/PUSH19/p0 0.98 0.98 -0.4% PASS
total/synth/PUSH19/p1 1.07 1.04 -3.1% PASS
total/synth/PUSH2/p0 0.96 0.96 +0.1% PASS
total/synth/PUSH2/p1 1.05 0.97 -7.7% PASS
total/synth/PUSH20/p0 0.99 0.98 -1.0% PASS
total/synth/PUSH20/p1 1.08 1.00 -7.0% PASS
total/synth/PUSH21/p0 0.99 0.98 -0.5% PASS
total/synth/PUSH21/p1 1.08 1.04 -3.4% PASS
total/synth/PUSH22/p0 0.98 0.97 -0.3% PASS
total/synth/PUSH22/p1 1.08 1.01 -7.0% PASS
total/synth/PUSH23/p0 0.99 0.99 -0.5% PASS
total/synth/PUSH23/p1 1.08 1.00 -7.2% PASS
total/synth/PUSH24/p0 0.99 0.98 -0.3% PASS
total/synth/PUSH24/p1 1.09 1.02 -7.0% PASS
total/synth/PUSH25/p0 0.99 0.98 -0.7% PASS
total/synth/PUSH25/p1 1.10 1.02 -6.6% PASS
total/synth/PUSH26/p0 0.99 0.99 -0.5% PASS
total/synth/PUSH26/p1 1.10 1.02 -6.8% PASS
total/synth/PUSH27/p0 1.00 0.99 -0.5% PASS
total/synth/PUSH27/p1 1.09 1.06 -2.9% PASS
total/synth/PUSH28/p0 0.99 0.98 -0.5% PASS
total/synth/PUSH28/p1 1.10 1.03 -6.0% PASS
total/synth/PUSH29/p0 1.00 0.99 -1.1% PASS
total/synth/PUSH29/p1 1.08 1.06 -2.2% PASS
total/synth/PUSH3/p0 0.98 0.96 -1.6% PASS
total/synth/PUSH3/p1 1.05 1.02 -2.9% PASS
total/synth/PUSH30/p0 0.97 0.96 -0.4% PASS
total/synth/PUSH30/p1 1.12 1.03 -8.5% PASS
total/synth/PUSH31/p0 0.99 0.99 -0.5% PASS
total/synth/PUSH31/p1 1.09 1.01 -6.7% PASS
total/synth/PUSH32/p0 0.99 0.99 -0.6% PASS
total/synth/PUSH32/p1 1.10 1.01 -8.0% PASS
total/synth/PUSH4/p0 0.96 0.97 +1.1% PASS
total/synth/PUSH4/p1 1.05 0.97 -7.6% PASS
total/synth/PUSH5/p0 0.98 0.97 -0.8% PASS
total/synth/PUSH5/p1 1.05 1.02 -2.8% PASS
total/synth/PUSH6/p0 0.97 0.97 -0.3% PASS
total/synth/PUSH6/p1 1.06 0.98 -7.5% PASS
total/synth/PUSH7/p0 0.97 0.97 -0.3% PASS
total/synth/PUSH7/p1 1.05 0.97 -8.0% PASS
total/synth/PUSH8/p0 0.97 0.97 -0.5% PASS
total/synth/PUSH8/p1 1.06 0.98 -7.7% PASS
total/synth/PUSH9/p0 0.98 0.98 +0.0% PASS
total/synth/PUSH9/p1 1.07 1.03 -3.5% PASS
total/synth/RETURNDATASIZE/a0 3.84 3.59 -6.5% PASS
total/synth/RETURNDATASIZE/a1 3.85 3.59 -6.6% PASS
total/synth/SAR/b0 3.69 3.73 +0.9% PASS
total/synth/SAR/b1 3.95 3.93 -0.7% PASS
total/synth/SGT/b0 2.19 2.19 +0.0% PASS
total/synth/SGT/b1 1.07 0.98 -8.3% PASS
total/synth/SHL/b0 2.82 2.81 -0.5% PASS
total/synth/SHL/b1 1.31 1.29 -1.5% PASS
total/synth/SHR/b0 2.82 2.81 -0.3% PASS
total/synth/SHR/b1 1.28 1.26 -1.8% PASS
total/synth/SIGNEXTEND/b0 3.27 3.14 -4.3% PASS
total/synth/SIGNEXTEND/b1 3.27 3.13 -4.4% PASS
total/synth/SLT/b0 2.20 2.20 -0.1% PASS
total/synth/SLT/b1 1.06 0.91 -14.8% PASS
total/synth/SUB/b0 1.45 1.44 -0.7% PASS
total/synth/SUB/b1 1.20 1.17 -2.0% PASS
total/synth/SWAP1/s0 1.10 1.10 +0.3% PASS
total/synth/SWAP10/s0 1.10 1.10 +0.0% PASS
total/synth/SWAP11/s0 1.11 1.10 -0.7% PASS
total/synth/SWAP12/s0 1.10 1.10 +0.5% PASS
total/synth/SWAP13/s0 1.09 1.11 +1.2% PASS
total/synth/SWAP14/s0 1.10 1.09 -0.6% PASS
total/synth/SWAP15/s0 1.09 1.09 -0.3% PASS
total/synth/SWAP16/s0 1.10 1.09 -0.9% PASS
total/synth/SWAP2/s0 1.09 1.10 +0.7% PASS
total/synth/SWAP3/s0 1.10 1.09 -1.1% PASS
total/synth/SWAP4/s0 1.10 1.10 -0.0% PASS
total/synth/SWAP5/s0 1.10 1.09 -0.6% PASS
total/synth/SWAP6/s0 1.10 1.10 +0.1% PASS
total/synth/SWAP7/s0 1.11 1.09 -1.0% PASS
total/synth/SWAP8/s0 1.10 1.10 -0.5% PASS
total/synth/SWAP9/s0 1.11 1.10 -0.7% PASS
total/synth/XOR/b0 1.14 1.16 +1.9% PASS
total/synth/XOR/b1 1.01 1.00 -0.5% PASS
total/synth/loop_v1 3.49 3.47 -0.6% PASS
total/synth/loop_v2 3.49 3.67 +5.4% 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 0.86 0.87 +0.2% PASS
total/main/blake2b_huff/empty 0.01 0.01 +0.7% PASS
total/main/blake2b_shifts/8415nulls 4.52 4.52 -0.1% PASS
total/main/sha1_divs/5311 0.59 0.59 -0.0% PASS
total/main/sha1_divs/empty 0.01 0.01 -0.0% PASS
total/main/sha1_shifts/5311 0.55 0.55 -0.6% PASS
total/main/sha1_shifts/empty 0.01 0.01 -0.8% PASS
total/main/snailtracer/benchmark 31.49 31.59 +0.3% PASS
total/main/structarray_alloc/nfts_rank 0.30 0.30 +0.6% PASS
total/main/swap_math/insufficient_liquidity 0.00 0.00 -0.1% PASS
total/main/swap_math/received 0.00 0.00 +0.2% PASS
total/main/swap_math/spent 0.00 0.00 -0.8% PASS
total/main/weierstrudel/1 0.24 0.24 +0.7% PASS
total/main/weierstrudel/15 2.59 2.60 +0.3% PASS
total/micro/JUMPDEST_n0/empty 0.00 0.00 -1.0% PASS
total/micro/jump_around/empty 0.06 0.05 -6.8% PASS
total/micro/loop_with_many_jumpdests/empty 0.00 0.00 -0.1% PASS
total/micro/memory_grow_mload/by1 0.01 0.01 -0.4% PASS
total/micro/memory_grow_mload/by16 0.01 0.01 +0.2% PASS
total/micro/memory_grow_mload/by32 0.01 0.01 -0.3% PASS
total/micro/memory_grow_mload/nogrow 0.01 0.01 +0.2% PASS
total/micro/memory_grow_mstore/by1 0.01 0.01 +0.4% PASS
total/micro/memory_grow_mstore/by16 0.01 0.02 +1.3% PASS
total/micro/memory_grow_mstore/by32 0.02 0.02 -1.7% PASS
total/micro/memory_grow_mstore/nogrow 0.01 0.01 +0.2% PASS
total/micro/signextend/one 0.08 0.08 +0.4% PASS
total/micro/signextend/zero 0.08 0.08 -0.4% PASS
total/synth/ADD/b0 0.00 0.00 -1.5% PASS
total/synth/ADD/b1 0.00 0.00 -1.4% PASS
total/synth/ADDRESS/a0 0.15 0.15 -0.0% PASS
total/synth/ADDRESS/a1 0.15 0.15 +0.1% PASS
total/synth/AND/b0 0.00 0.00 -1.3% PASS
total/synth/AND/b1 0.00 0.00 -1.8% PASS
total/synth/BYTE/b0 0.00 0.00 -1.3% PASS
total/synth/BYTE/b1 0.00 0.00 -1.7% PASS
total/synth/CALLDATASIZE/a0 0.07 0.07 -0.1% PASS
total/synth/CALLDATASIZE/a1 0.07 0.07 -0.0% PASS
total/synth/CALLER/a0 0.18 0.18 -0.1% PASS
total/synth/CALLER/a1 0.18 0.18 -0.1% PASS
total/synth/CALLVALUE/a0 0.26 0.26 +0.2% PASS
total/synth/CALLVALUE/a1 0.26 0.26 +0.0% PASS
total/synth/CODESIZE/a0 0.07 0.07 -0.0% PASS
total/synth/CODESIZE/a1 0.07 0.07 +0.0% PASS
total/synth/DUP1/d0 0.00 0.00 -1.4% PASS
total/synth/DUP1/d1 0.00 0.00 -1.2% PASS
total/synth/DUP10/d0 0.00 0.00 -1.3% PASS
total/synth/DUP10/d1 0.00 0.00 -1.6% PASS
total/synth/DUP11/d0 0.00 0.00 -1.4% PASS
total/synth/DUP11/d1 0.00 0.00 -1.5% PASS
total/synth/DUP12/d0 0.00 0.00 -1.7% PASS
total/synth/DUP12/d1 0.00 0.00 -1.5% PASS
total/synth/DUP13/d0 0.00 0.00 -1.8% PASS
total/synth/DUP13/d1 0.00 0.00 -1.4% PASS
total/synth/DUP14/d0 0.00 0.00 -1.7% PASS
total/synth/DUP14/d1 0.00 0.00 -1.4% PASS
total/synth/DUP15/d0 0.00 0.00 -1.4% PASS
total/synth/DUP15/d1 0.00 0.00 -1.6% PASS
total/synth/DUP16/d0 0.00 0.00 -1.2% PASS
total/synth/DUP16/d1 0.00 0.00 -1.4% PASS
total/synth/DUP2/d0 0.00 0.00 -1.5% PASS
total/synth/DUP2/d1 0.00 0.00 -1.8% PASS
total/synth/DUP3/d0 0.00 0.00 -1.8% PASS
total/synth/DUP3/d1 0.00 0.00 -1.3% PASS
total/synth/DUP4/d0 0.00 0.00 -1.3% PASS
total/synth/DUP4/d1 0.00 0.00 -1.5% PASS
total/synth/DUP5/d0 0.00 0.00 -1.4% PASS
total/synth/DUP5/d1 0.00 0.00 -1.4% PASS
total/synth/DUP6/d0 0.00 0.00 -1.7% PASS
total/synth/DUP6/d1 0.00 0.00 -1.3% PASS
total/synth/DUP7/d0 0.00 0.00 -1.7% PASS
total/synth/DUP7/d1 0.00 0.00 -1.4% PASS
total/synth/DUP8/d0 0.00 0.00 -1.5% PASS
total/synth/DUP8/d1 0.00 0.00 -1.0% PASS
total/synth/DUP9/d0 0.00 0.00 -1.4% PASS
total/synth/DUP9/d1 0.00 0.00 -1.3% PASS
total/synth/EQ/b0 0.00 0.00 -1.4% PASS
total/synth/EQ/b1 0.00 0.00 -1.3% PASS
total/synth/GAS/a0 0.76 0.76 +0.0% PASS
total/synth/GAS/a1 0.76 0.76 +0.1% PASS
total/synth/GT/b0 0.00 0.00 -1.4% PASS
total/synth/GT/b1 0.00 0.00 -1.2% PASS
total/synth/ISZERO/u0 0.00 0.00 -1.3% PASS
total/synth/JUMPDEST/n0 0.00 0.00 -1.3% PASS
total/synth/LT/b0 0.00 0.00 -1.5% PASS
total/synth/LT/b1 0.00 0.00 -1.4% PASS
total/synth/MSIZE/a0 0.00 0.00 -1.8% PASS
total/synth/MSIZE/a1 0.00 0.00 -1.8% PASS
total/synth/MUL/b0 0.00 0.00 -1.7% PASS
total/synth/MUL/b1 0.00 0.00 -1.7% PASS
total/synth/NOT/u0 0.00 0.00 -1.8% PASS
total/synth/OR/b0 0.00 0.00 -1.5% PASS
total/synth/OR/b1 0.00 0.00 -1.3% PASS
total/synth/PC/a0 0.00 0.00 -1.9% PASS
total/synth/PC/a1 0.00 0.00 -1.8% PASS
total/synth/PUSH1/p0 0.00 0.00 -1.5% PASS
total/synth/PUSH1/p1 0.00 0.00 -1.3% PASS
total/synth/PUSH10/p0 0.00 0.00 -1.4% PASS
total/synth/PUSH10/p1 0.00 0.00 -1.7% PASS
total/synth/PUSH11/p0 0.00 0.00 -1.7% PASS
total/synth/PUSH11/p1 0.00 0.00 -1.4% PASS
total/synth/PUSH12/p0 0.00 0.00 -1.7% PASS
total/synth/PUSH12/p1 0.00 0.00 -1.4% PASS
total/synth/PUSH13/p0 0.00 0.00 -1.4% PASS
total/synth/PUSH13/p1 0.00 0.00 -1.4% PASS
total/synth/PUSH14/p0 0.00 0.00 -1.4% PASS
total/synth/PUSH14/p1 0.00 0.00 -1.5% PASS
total/synth/PUSH15/p0 0.00 0.00 -1.4% PASS
total/synth/PUSH15/p1 0.00 0.00 -1.7% PASS
total/synth/PUSH16/p0 0.00 0.00 -1.2% PASS
total/synth/PUSH16/p1 0.00 0.00 -1.2% PASS
total/synth/PUSH17/p0 0.00 0.00 -1.3% PASS
total/synth/PUSH17/p1 0.00 0.00 -1.7% PASS
total/synth/PUSH18/p0 0.00 0.00 -1.4% PASS
total/synth/PUSH18/p1 0.00 0.00 -1.8% PASS
total/synth/PUSH19/p0 0.00 0.00 -1.4% PASS
total/synth/PUSH19/p1 0.00 0.00 -1.3% PASS
total/synth/PUSH2/p0 0.00 0.00 -1.5% PASS
total/synth/PUSH2/p1 0.00 0.00 -1.3% PASS
total/synth/PUSH20/p0 0.00 0.00 -1.4% PASS
total/synth/PUSH20/p1 0.00 0.00 -1.7% PASS
total/synth/PUSH21/p0 0.00 0.00 -1.2% PASS
total/synth/PUSH21/p1 0.00 0.00 -1.4% PASS
total/synth/PUSH22/p0 1.31 1.15 -12.4% PASS
total/synth/PUSH22/p1 1.43 1.42 -0.2% PASS
total/synth/PUSH23/p0 1.31 1.15 -12.5% PASS
total/synth/PUSH23/p1 1.43 1.43 -0.0% PASS
total/synth/PUSH24/p0 1.31 1.15 -12.4% PASS
total/synth/PUSH24/p1 1.46 1.42 -2.3% PASS
total/synth/PUSH25/p0 1.31 1.15 -12.5% PASS
total/synth/PUSH25/p1 1.43 1.43 -0.4% PASS
total/synth/PUSH26/p0 1.07 0.83 -22.5% PASS
total/synth/PUSH26/p1 1.43 1.43 -0.5% PASS
total/synth/PUSH27/p0 1.31 1.15 -12.4% PASS
total/synth/PUSH27/p1 1.43 1.43 +0.1% PASS
total/synth/PUSH28/p0 1.31 1.15 -12.5% PASS
total/synth/PUSH28/p1 1.43 1.45 +1.8% PASS
total/synth/PUSH29/p0 1.31 1.15 -12.4% PASS
total/synth/PUSH29/p1 1.43 1.42 -0.3% PASS
total/synth/PUSH3/p0 0.00 0.00 -0.4% PASS
total/synth/PUSH3/p1 0.00 0.00 -1.4% PASS
total/synth/PUSH30/p0 1.32 1.16 -12.5% PASS
total/synth/PUSH30/p1 1.44 1.45 +0.8% PASS
total/synth/PUSH31/p0 1.31 1.15 -12.5% PASS
total/synth/PUSH31/p1 1.54 1.55 +0.9% PASS
total/synth/PUSH32/p0 1.31 1.15 -12.5% PASS
total/synth/PUSH32/p1 1.44 1.45 +1.0% PASS
total/synth/PUSH4/p0 0.00 0.00 -1.3% PASS
total/synth/PUSH4/p1 0.00 0.00 -1.5% PASS
total/synth/PUSH5/p0 0.00 0.00 -1.3% PASS
total/synth/PUSH5/p1 0.00 0.00 -1.4% PASS
total/synth/PUSH6/p0 0.00 0.00 -1.5% PASS
total/synth/PUSH6/p1 0.00 0.00 -1.2% PASS
total/synth/PUSH7/p0 0.00 0.00 -1.8% PASS
total/synth/PUSH7/p1 0.00 0.00 -1.6% PASS
total/synth/PUSH8/p0 0.00 0.00 -1.4% PASS
total/synth/PUSH8/p1 0.00 0.00 -2.0% PASS
total/synth/PUSH9/p0 0.00 0.00 -1.2% PASS
total/synth/PUSH9/p1 0.00 0.00 -1.7% PASS
total/synth/RETURNDATASIZE/a0 0.03 0.03 -0.1% PASS
total/synth/RETURNDATASIZE/a1 0.03 0.03 -0.1% PASS
total/synth/SAR/b0 6.16 6.16 -0.1% PASS
total/synth/SAR/b1 7.03 7.05 +0.2% PASS
total/synth/SGT/b0 0.00 0.00 -1.9% PASS
total/synth/SGT/b1 0.00 0.00 -1.3% PASS
total/synth/SHL/b0 13.35 13.37 +0.1% PASS
total/synth/SHL/b1 13.34 13.35 +0.1% PASS
total/synth/SHR/b0 11.42 11.50 +0.7% PASS
total/synth/SHR/b1 11.64 11.66 +0.2% PASS
total/synth/SIGNEXTEND/b0 0.00 0.00 -2.1% PASS
total/synth/SIGNEXTEND/b1 0.00 0.00 -1.5% PASS
total/synth/SLT/b0 0.00 0.00 -1.2% PASS
total/synth/SLT/b1 0.00 0.00 -1.6% PASS
total/synth/SUB/b0 0.00 0.00 -1.9% PASS
total/synth/SUB/b1 0.00 0.00 -1.3% PASS
total/synth/SWAP1/s0 0.00 0.00 -1.4% PASS
total/synth/SWAP10/s0 0.00 0.00 -1.3% PASS
total/synth/SWAP11/s0 0.00 0.00 -1.8% PASS
total/synth/SWAP12/s0 0.00 0.00 -1.8% PASS
total/synth/SWAP13/s0 0.00 0.00 -1.2% PASS
total/synth/SWAP14/s0 0.00 0.00 -1.3% PASS
total/synth/SWAP15/s0 0.00 0.00 -1.7% PASS
total/synth/SWAP16/s0 0.00 0.00 -1.9% PASS
total/synth/SWAP2/s0 0.00 0.00 -1.5% PASS
total/synth/SWAP3/s0 0.00 0.00 -1.4% PASS
total/synth/SWAP4/s0 0.00 0.00 -1.4% PASS
total/synth/SWAP5/s0 0.00 0.00 -1.4% PASS
total/synth/SWAP6/s0 0.00 0.00 -1.3% PASS
total/synth/SWAP7/s0 0.00 0.00 -1.6% PASS
total/synth/SWAP8/s0 0.00 0.00 -1.3% PASS
total/synth/SWAP9/s0 0.00 0.00 -1.5% PASS
total/synth/XOR/b0 0.00 0.00 -1.4% PASS
total/synth/XOR/b1 0.00 0.00 -1.4% PASS
total/synth/loop_v1 1.19 1.17 -1.4% PASS
total/synth/loop_v2 1.11 1.10 -0.5% PASS

Summary: 194 benchmarks, 0 regressions


ZR74 added a commit to ZR74/DTVM that referenced this pull request Apr 27, 2026
…k#462)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ZR74 and others added 3 commits April 27, 2026 18:19
- Store raw (non-canonicalized) JUMPDEST PCs in ResolvedJumpTargets so
  SPP gas blocks correctly account for intermediate JUMPDESTs in
  consecutive runs. The SSA analyzer canonicalizes in its own consumer.
- Pass the caller's evmc_revision metrics table into the shared pass
  instead of hardcoding DEFAULT_REVISION, so opcodes like PUSH0 get
  correct stack effects under their respective revisions.
- Add clarifying comment for the JUMPI case where a known-constant
  destination is not a valid JUMPDEST (intentional: traps at runtime).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…k#462)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.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.

2 participants