From 496d92bfcf848d7c888b83cc354819ed87ba0b87 Mon Sep 17 00:00:00 2001 From: Derek Schuff Date: Tue, 12 Nov 2024 17:33:35 -0800 Subject: Introduce pass to lower memory.copy and memory.fill (#7021) This pass lowers away memory.copy and memory.fill operations. It generates a function that implements the each of the instructions and replaces the instructions with calls to those functions. It does not handle other bulk memory operations (e.g. passive segments and table operations) because they are not used by emscripten to enable targeting old browsers that don't support bulk memory. --- test/lit/help/wasm-metadce.test | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/lit/help/wasm-metadce.test') diff --git a/test/lit/help/wasm-metadce.test b/test/lit/help/wasm-metadce.test index 50295b1f0..908b381e8 100644 --- a/test/lit/help/wasm-metadce.test +++ b/test/lit/help/wasm-metadce.test @@ -239,6 +239,10 @@ ;; CHECK-NEXT: --log-execution instrument the build with ;; CHECK-NEXT: logging of where execution goes ;; CHECK-NEXT: +;; CHECK-NEXT: --memory-copy-fill-lowering Lower memory.copy and +;; CHECK-NEXT: memory.fill to wasm mvp and +;; CHECK-NEXT: disable the bulk-memory feature. +;; CHECK-NEXT: ;; CHECK-NEXT: --memory-packing packs memory into separate ;; CHECK-NEXT: segments, skipping zeros ;; CHECK-NEXT: -- cgit v1.2.3