From 655eab84019236d02032ceb61570f4f34ee8ac0d Mon Sep 17 00:00:00 2001 From: Roberto Lublinerman Date: Fri, 6 Sep 2024 19:30:00 -0300 Subject: Adds a J2CL specific pass that moves itable entries to vtables (#6888) This allows to remove a reference field from all Java objects reducing the per object memory and initialization overhead. The pass is designed to run direclty on the J2CL output before other optimizations since it relies on invariants that might get lost in optimization. If the invariants don't hold the pass aborts. --- 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 41a43bf1b..4ddf55203 100644 --- a/test/lit/help/wasm-metadce.test +++ b/test/lit/help/wasm-metadce.test @@ -248,6 +248,10 @@ ;; CHECK-NEXT: ;; CHECK-NEXT: --merge-blocks merges blocks to their parents ;; CHECK-NEXT: +;; CHECK-NEXT: --merge-j2cl-itables Merges itable structures into +;; CHECK-NEXT: vtables to make types more +;; CHECK-NEXT: compact +;; CHECK-NEXT: ;; CHECK-NEXT: --merge-locals merges locals when beneficial ;; CHECK-NEXT: ;; CHECK-NEXT: --merge-similar-functions merges similar functions when -- cgit v1.2.3