summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/passes/RemoveUnusedModuleElements.cpp6
1 files changed, 6 insertions, 0 deletions
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<ReferenceFinder> {
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});