-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
WASM.SIMD BitSelect & Shuffle ops + Tests #3763
Conversation
6d433bb
to
7c3ca9c
Compare
@Cellule could you please take a look when you have a mnt? Thanks! |
ping @Cellule |
@Cellule ping. |
Reviewed 23 of 23 files at r1. lib/Backend/IRBuilderAsmJs.cpp, line 3986 at r1 (raw file):
Shouldn't the IRType be lib/Backend/IRBuilderAsmJs.cpp, line 5843 at r1 (raw file):
Could we make a loop for these and lib/Runtime/ByteCode/AsmJsByteCodeWriter.cpp, line 256 at r1 (raw file):
Can we use lib/Runtime/ByteCode/OpCodesSimd.h, line 432 at r1 (raw file):
Shouldn't this be lib/Runtime/Language/InterpreterProcessOpCodeAsmJs.h, line 2187 at r1 (raw file):
This is very specific, could we just make this a CUSTOM process and use a helper instead. lib/WasmReader/WasmBinaryReader.cpp, line 605 at r1 (raw file):
Add lib/WasmReader/WasmByteCodeGenerator.cpp, line 1457 at r1 (raw file):
I don't see any other uses of this function, do we really need to extract this ? lib/WasmReader/WasmByteCodeGenerator.cpp, line 1484 at r1 (raw file):
We can leave the default error message for type mismatch. This message shows less information than the default lib/WasmReader/WasmByteCodeGenerator.cpp, line 1510 at r1 (raw file):
nit: just use Comments from Reviewable |
Review status: all files reviewed at latest revision, 9 unresolved discussions. lib/Runtime/ByteCode/OpCodesSimd.h, line 432 at r1 (raw file): Previously, Cellule (Michael Ferris) wrote…
There's already Comments from Reviewable |
tagging @arunetm |
Reviewed 9 of 9 files at r2. lib/Runtime/Language/InterpreterStackFrame.h, line 264 at r2 (raw file):
nit: lib/WasmReader/WasmBinaryReader.cpp, line 609 at r2 (raw file):
We should check before reading the byte as it could potentially trigger an A/V Comments from Reviewable |
@@ -51,6 +51,9 @@ namespace Js | |||
IMP_IWASM void AsmReg9(OpCodeAsmJs op, RegSlot R0, RegSlot R1, RegSlot R2, RegSlot R3, RegSlot R4, RegSlot R5, RegSlot R6, RegSlot R7, RegSlot R8); | |||
IMP_IWASM void AsmReg17(OpCodeAsmJs op, RegSlot R0, RegSlot R1, RegSlot R2, RegSlot R3, RegSlot R4, RegSlot R5, RegSlot R6, RegSlot R7, RegSlot R8, | |||
RegSlot R9, RegSlot R10, RegSlot R11, RegSlot R12, RegSlot R13, RegSlot R14, RegSlot R15, RegSlot R16); | |||
IMP_IWASM void AsmReg19(OpCodeAsmJs op, RegSlot R0, RegSlot R1, RegSlot R2, RegSlot R3, RegSlot R4, RegSlot R5, RegSlot R6, RegSlot R7, RegSlot R8, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the change with AsmReg19? Seems like this isn't being used in wasm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, good catch!
@Cellule could you please give it another look? |
Review status: 22 of 25 files reviewed at latest revision, 3 unresolved discussions. lib/WasmReader/WasmBinaryReader.cpp, line 609 at r2 (raw file): Previously, Cellule (Michael Ferris) wrote…
oh, my bad. I thought I'd put before the loop Comments from Reviewable |
Reviewed 3 of 3 files at r3, 2 of 2 files at r4. Comments from Reviewable |
@dotnet-bot test this please |
@dotnet-bot test Windows 7 ci_dev12_x64_debug please |
@Cellule did you do test this because Windows 7 ci_dev12_x64_debug got stuck or was it another error? |
@Cellule @MikeHolman guys could one of you please help me to merge this change? |
Merge pull request #3763 from Krovatkin:wasm.bitselect2 This PR adds * BitSelect + tests * Shuffle + tests
@MikeHolman @Cellule , thank you! |
This PR adds
This change is