Skip to content

[SOL] Fix version detection in call lowering - #214

Open
nathan-osec wants to merge 1 commit into
anza-xyz:solana-rustc/22.1-2026-01-27from
nathan-osec:fix-r5
Open

[SOL] Fix version detection in call lowering#214
nathan-osec wants to merge 1 commit into
anza-xyz:solana-rustc/22.1-2026-01-27from
nathan-osec:fix-r5

Conversation

@nathan-osec

Copy link
Copy Markdown

The LowerCall method uses getHasDynamicFrames to distinguish between SBPFv0 and v3 when it should be using getHasNoStackGaps. This causes a redundant mov64 r5, r10 instruction to be emitted for every SBPFv3 call with more than 5 arguments, even though it can be optimized out if optimization is enabled.

@nagisa

nagisa commented Sep 2, 2026

Copy link
Copy Markdown

There… should be tests that change here; and if there aren't please add a test with one commit showing initial state and the diff to the test along with the fix commit.

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.

3 participants