Skip to content

Delete obsolete SIMD.js support - #11180

Merged
juj merged 14 commits into
emscripten-core:masterfrom
juj:remove_vector_h
May 26, 2020
Merged

juj merged 14 commits into
emscripten-core:masterfrom
juj:remove_vector_h

Conversation

@juj

@juj juj commented May 18, 2020 •

Copy link
Copy Markdown
Collaborator

Delete obsolete SIMD.js support.

@juj juj added the SIMD label May 18, 2020
@juj
juj requested a review from tlively May 18, 2020 19:05
tlively
tlively previously approved these changes May 18, 2020

@tlively tlively left a comment

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.

I suspect that there is a bunch more legacy SIMD support code that needs to be deleted as well, but this is definitely an improvement 👍

@juj
juj force-pushed the remove_vector_h branch from e34dfbe to 5ff2944 Compare May 26, 2020 06:32
@juj
juj requested review from kripken and tlively May 26, 2020 06:33
@juj juj changed the title Delete obsolete SIMD.js system/include/emscripten/vector.h. Delete obsolete SIMD.js support May 26, 2020
@juj
juj dismissed tlively’s stale review May 26, 2020 06:38

PR changed substantially

@juj

juj commented May 26, 2020

Copy link
Copy Markdown
Collaborator Author

Re-requesting reviews: expanded this PR to drop the SIMD.js paths. Also removed -s SIMD=1 setting, now just -msimd128 remains.

@kripken kripken left a comment

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.

lgtm module the new internal flag, see comment.

About the test removals, is it not worth converting some of them for the new simd?

Comment thread src/settings_internal.js
var BINARYEN_FEATURES = [];

// Tracks whether to enable Wasm SIMD support in Binaryen.
var BINARYEN_SIMD = 0;

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.

Why is this needed? I think it should work automatically with BINARYEN_FEATURES like other wasm features. Maybe I'm forgetting something @tlively ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It does not seem to. Not sure if it's not hooked up, or?

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.

That could be a bug in LLVM then if it isn't writing out the simd feature @tlively ?

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.

Yeah this should Just Work™️. I can look into it as a follow-up.

@juj

juj commented May 26, 2020

Copy link
Copy Markdown
Collaborator Author

About the test removals, is it not worth converting some of them for the new simd?

It might be, but I don't have the cycles to research that. There do already exist wasm simd tests, not sure how complete those are.

@juj
juj merged commit 473d02a into emscripten-core:master May 26, 2020
@ngzhian

ngzhian commented May 27, 2020

Copy link
Copy Markdown
Collaborator

@tlively this doc should be updated too? https://docs.google.com/document/d/1oy_bYCtMBIqhxhPTVpWgQFygazKL2FVwILaf3BrcacQ/edit
Or maybe that doc is out of date and not meant to be followed :) I just had it bookmarked an always referred to it.

@tlively

tlively commented May 27, 2020

Copy link
Copy Markdown
Member

I think that doc has probably been superseded by the official Emscripten documentation, but I'll update it to point to the right place.

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.

4 participants