Skip to content

perf: skip remaining ADD fusion rules after a non-SLTU lookahead - #559

Open
quake wants to merge 1 commit into
nervosnetwork:developfrom
quake:quake/mop-add-early-develop
Open

quake wants to merge 1 commit into
nervosnetwork:developfrom
quake:quake/mop-add-early-develop

Conversation

@quake

@quake quake commented Dec 2, 2026

Copy link
Copy Markdown
Member

All three ADD fusion rules (ADC, ADD3, and ADCS) require SLTU as the next instruction. Once a rule decodes a different opcode, return the original ADD instead of looking up the same instruction again. A failed lookahead still follows the existing fallback path.

On an AMD Ryzen AI 9 HX 370, this reduced whole-batch TransactionScriptsVerifier::verify() time by 1.2% on each of two mainnet transaction batches (82 and 80 transactions, release-0.24, separate builds). Guest cycles matched for every transaction. An EPYC 9254 VM did not show a consistent speedup.

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.

1 participant