Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable the memory64 feature in Memory64Lowering.cpp #5679

Merged
merged 4 commits into from
Apr 19, 2023

Conversation

tlively
Copy link
Member

@tlively tlively commented Apr 19, 2023

For consistency with other feature lowering passes, disable memory64 in addition
to lowering its use away. Although no other passes would introduce new uses of
memory64 at the moment, this makes the lowering pass more robust against a
future where memory64 might accidentally be reintroduced after being lowered away.

The sign extension lowering pass would previously lower away the sign extension
instructions, but it wouldn't disable the sign extension feature, so follow-on
passes such as optimize-instructions could reintroduce sign extension
instructions.

Fix the pass to disable the sign extension feature to prevent sign extension
instructions from being reintroduced later.
For consistency with other feature lowering passes, disable memory64 in addition
to lowering its use away. Although no other passes would introduce new uses of
memory64 at the moment, this makes the lowering pass more robust against a
future where memory64 might accidentally be reintroduced after being lowered away.
@tlively
Copy link
Member Author

tlively commented Apr 19, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

test/lit/passes/memory64-lowering-features.wast Outdated Show resolved Hide resolved
Co-authored-by: Alon Zakai <azakai@google.com>
@tlively
Copy link
Member Author

tlively commented Apr 19, 2023

@tlively queued this pull request to merge with Graphite.

Base automatically changed from signext-lowering-feature to main April 19, 2023 23:56
@tlively tlively merged commit 7cd2396 into main Apr 19, 2023
@tlively
Copy link
Member Author

tlively commented Apr 19, 2023

@tlively queued this pull request to merge with Graphite.

@tlively tlively deleted the memory64-lowering-feature branch April 19, 2023 23:56
radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jul 12, 2024
* Disable sign extension in SignExtLowering.cpp

The sign extension lowering pass would previously lower away the sign extension
instructions, but it wouldn't disable the sign extension feature, so follow-on
passes such as optimize-instructions could reintroduce sign extension
instructions.

Fix the pass to disable the sign extension feature to prevent sign extension
instructions from being reintroduced later.

* update pass description

* Disable the memory64 feature in Memory64Lowering.cpp

For consistency with other feature lowering passes, disable memory64 in addition
to lowering its use away. Although no other passes would introduce new uses of
memory64 at the moment, this makes the lowering pass more robust against a
future where memory64 might accidentally be reintroduced after being lowered away.

* Update test/lit/passes/memory64-lowering-features.wast

Co-authored-by: Alon Zakai <azakai@google.com>

---------

Co-authored-by: Alon Zakai <azakai@google.com>
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.

2 participants