Skip to content

Use splatted zero vector in makeZero#2164

Merged
tlively merged 2 commits intoWebAssembly:masterfrom
tlively:fix-simd-make-zero
Jun 6, 2019
Merged

Use splatted zero vector in makeZero#2164
tlively merged 2 commits intoWebAssembly:masterfrom
tlively:fix-simd-make-zero

Conversation

@tlively
Copy link
Copy Markdown
Member

@tlively tlively commented Jun 6, 2019

This prevents the optimizer from producing v128.const instructions,
which are not supported by V8 at this time.

This prevents the optimizer from producing v128.const instructions,
which are not supported by V8 at this time.
@tlively tlively requested a review from kripken June 6, 2019 01:31
Comment thread src/ir/literal-utils.h
}

inline Expression* makeZero(Type type, Module& wasm) {
// TODO: Switch to using v128.const once V8 supports it
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a bug number we can add in a link here?

do other impls support it? if so can mention that in the comment too, as when we change this may depend on those too.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a link. All other implementations that implement any SIMD implement this instruction (https://github.com/WebAssembly/simd/blob/master/proposals/simd/ImplementationStatus.md), so we should only have to worry about V8.

@tlively tlively merged commit 616abe4 into WebAssembly:master Jun 6, 2019
@tlively tlively deleted the fix-simd-make-zero branch April 24, 2020 23:15
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