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

Fix assertion when declaring a const v128 #1411

Merged
merged 3 commits into from
Jul 25, 2020
Merged

Fix assertion when declaring a const v128 #1411

merged 3 commits into from
Jul 25, 2020

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Jul 24, 2020

This is a suggestion to fix #1409 by keeping precompute intact but disabling inlining of const v128s. In the given case

const one = i32x4.splat(1);

will precompute the value to a v128.const (initializer might be arbitrarily complex), but will not attempt to inline an eventual constant in subsequent code and instead leave the decision to do so to Binaryen.

  • I've read the contributing guidelines

This was referenced Jul 24, 2020
@dcodeIO dcodeIO merged commit 0472909 into master Jul 25, 2020
@github-actions
Copy link

🎉 This PR is included in version 0.14.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@dcodeIO dcodeIO deleted the issue-1409 branch June 1, 2021 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SIMD splat causes compiler error
1 participant