summaryrefslogtreecommitdiff
path: root/src/passes/DeadCodeElimination.cpp
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-10-22 21:47:17 -0700
committerGitHub <noreply@github.com>2020-10-22 21:47:17 -0700
commitdaf0782b7754e225c9063f9fbf5195b4b4a3c7e3 (patch)
treed0004ebe92a2559e8bfcd86c4bdfdf972dc81432 /src/passes/DeadCodeElimination.cpp
parenta2fa37eb94fdd6896f4d90f22e34fbd5f028d742 (diff)
downloadbinaryen-daf0782b7754e225c9063f9fbf5195b4b4a3c7e3.tar.gz
binaryen-daf0782b7754e225c9063f9fbf5195b4b4a3c7e3.tar.bz2
binaryen-daf0782b7754e225c9063f9fbf5195b4b4a3c7e3.zip
Implement v128.{load,store}{8,16,32,64}_lane instructions (#3278)
These instructions are proposed in https://github.com/WebAssembly/simd/pull/350. This PR implements them throughout Binaryen except in the C/JS APIs and in the fuzzer, where it leaves TODOs instead. Right now these instructions are just being implemented for prototyping so adding them to the APIs isn't critical and they aren't generally available to be fuzzed in Wasm engines.
Diffstat (limited to 'src/passes/DeadCodeElimination.cpp')
-rw-r--r--src/passes/DeadCodeElimination.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/passes/DeadCodeElimination.cpp b/src/passes/DeadCodeElimination.cpp
index 067bc81e1..a17abfd90 100644
--- a/src/passes/DeadCodeElimination.cpp
+++ b/src/passes/DeadCodeElimination.cpp
@@ -345,6 +345,8 @@ struct DeadCodeElimination
DELEGATE(SIMDShift);
case Expression::Id::SIMDLoadId:
DELEGATE(SIMDLoad);
+ case Expression::Id::SIMDLoadStoreLaneId:
+ DELEGATE(SIMDLoadStoreLane);
case Expression::Id::MemoryInitId:
DELEGATE(MemoryInit);
case Expression::Id::DataDropId: