solidity icon indicating copy to clipboard operation
solidity copied to clipboard

perf: EOF optimizations are applied even when EOF is not supported

Open DaniPopes opened this issue 3 weeks ago • 2 comments

evmasm peephole optimizer will apply EOF-only optimization passes, like IsZeroIsZeroRJumpI, that will never apply in non-EOF bytecodes. There should be a check to exclude running these passes ahead of time since they will never apply and just waste time, enough to show up in profiles.

This should be a very simple 1-2% performance improvement for any optimized compilation.

DaniPopes avatar Nov 19 '25 19:11 DaniPopes