Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EVM-Equivalence-YUL] Execute JUMPDEST immediately after JUMP/JUMPI #713

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

0xVolosnikov
Copy link

What ❔

Since we don't check whether JUMPDEST is a valid opcode anyway, we can avoid re-reading the same opcode after jumps.

Benchmark results (without the latest compiler optimizations):

╠═╡ Ergs/gas (-%) ╞═╡ EVMInterpreter M3B3 ╞═╣
║ JUMP                               23.558 ║
║ JUMPI                              20.502 ║
║ DUP3                               -4.715 ║
║ CALL                                0.259 ║
║ STATICCALL                          0.259 ║
║ DELEGATECALL                        0.264 ║
╚═══════════════════════════════════════════╝

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

@jrchatruc jrchatruc merged commit c8bdc79 into evm-equivalence-yul Aug 19, 2024
17 of 18 checks passed
@jrchatruc jrchatruc deleted the vv-optimize-jump branch August 19, 2024 17:36
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