Skip to content

[SIMD] wasm-ctor-eval: Fix relaxed SIMD in expressions #7508

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

Merged
merged 1 commit into from
Apr 16, 2025

Conversation

kripken
Copy link
Member

@kripken kripken commented Apr 16, 2025

The previous fix #7495 handled functions computing something with
relaxed SIMD, in which case an exception is thrown, but we also need to
handle relaxed SIMD inside a function, since wasm-ctor-eval can partially-
evaluate code. In that case we get NONCONSTANT_FLOW.

Turns out adding --kept-exports is enough to test this, as keeping the
exports around forces partial evaluation of their contents.

@kripken kripken requested a review from tlively April 16, 2025 17:46
@kripken kripken merged commit cfb9ff1 into WebAssembly:main Apr 16, 2025
14 checks passed
@kripken kripken deleted the ctor.relaxed.flow branch April 16, 2025 20:11
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