Skip to content

Fix optimising out returndatacopy call.#16436

Draft
rodiazet wants to merge 1 commit intodevelopfrom
fix-opt-returndatacopy
Draft

Fix optimising out returndatacopy call.#16436
rodiazet wants to merge 1 commit intodevelopfrom
fix-opt-returndatacopy

Conversation

@rodiazet
Copy link
Contributor

@rodiazet rodiazet commented Feb 2, 2026

Fixes removing returndatacopy calls when returndatasize is stale.

This problem is fixed by registering returndatasize calls and invalidating them when any of call opcode (potentially changing the size) is called.

WiP. Need more tests.

@cameel cameel added the codegen error Compiler generates invalid code. Critical. label Feb 3, 2026
@cameel
Copy link
Collaborator

cameel commented Feb 3, 2026

WiP. Need more tests.

And a changelog entry. And a buglist entry. Generally an integral part of the task is to determine the actual impact of the bug on the compiler and do a deeper validation of the claims from the submission (which we have confirmed but only superficially investigated so far).

@github-actions
Copy link

This pull request is stale because it has been open for 14 days with no activity.
It will be closed in 7 days unless the stale label is removed.

@github-actions github-actions bot added the stale The issue/PR was marked as stale because it has been open for too long. label Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codegen error Compiler generates invalid code. Critical. stale The issue/PR was marked as stale because it has been open for too long.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments