Skip to content

Disable the memory64 feature in Memory64Lowering.cpp - #5679

Merged
tlively merged 4 commits into
mainfrom
memory64-lowering-feature
Apr 19, 2023
Merged

tlively merged 4 commits into
mainfrom
memory64-lowering-feature

Conversation

@tlively

@tlively tlively commented Apr 19, 2023

Copy link
Copy Markdown
Member

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 added 3 commits April 19, 2023 08:09
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

tlively commented Apr 19, 2023

Copy link
Copy Markdown
Member Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

Comment thread test/lit/passes/memory64-lowering-features.wast Outdated
Co-authored-by: Alon Zakai <azakai@google.com>
@tlively

tlively commented Apr 19, 2023

Copy link
Copy Markdown
Member Author

@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

tlively commented Apr 19, 2023

Copy link
Copy Markdown
Member Author

@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