From 04d451f3aadaf4d364e001fa9a849ef57a100a9e Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 5 Apr 2023 12:53:50 -0700 Subject: RemoveUnusedModuleElements: Add SIMD support for memory operations (#5632) Fixes #5629 --- src/passes/RemoveUnusedModuleElements.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/passes/RemoveUnusedModuleElements.cpp b/src/passes/RemoveUnusedModuleElements.cpp index 747b8806c..943448cfa 100644 --- a/src/passes/RemoveUnusedModuleElements.cpp +++ b/src/passes/RemoveUnusedModuleElements.cpp @@ -154,6 +154,12 @@ struct ReferenceFinder : public PostWalker { void visitAtomicNotify(AtomicNotify* curr) { note({ModuleElementKind::Memory, curr->memory}); } + void visitSIMDLoad(SIMDLoad* curr) { + note({ModuleElementKind::Memory, curr->memory}); + } + void visitSIMDLoadStoreLane(SIMDLoadStoreLane* curr) { + note({ModuleElementKind::Memory, curr->memory}); + } void visitMemoryInit(MemoryInit* curr) { note({ModuleElementKind::DataSegment, curr->segment}); note({ModuleElementKind::Memory, curr->memory}); -- cgit v1.2.3