solidity
solidity copied to clipboard
perf: EOF optimizations are applied even when EOF is not supported
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.