summaryrefslogtreecommitdiff
path: root/test/lit/passes/monomorphize-drop.wast
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-10-04 11:27:59 -0700
committerGitHub <noreply@github.com>2024-10-04 11:27:59 -0700
commit0be8d5e07e5f893705bc36c5d09676ee65d3466f (patch)
tree04228cdc0ecfce29a7d783a8c66809235629cfe7 /test/lit/passes/monomorphize-drop.wast
parentcbad8ec02680710001ebdc7157e487c54e9b4c66 (diff)
downloadbinaryen-0be8d5e07e5f893705bc36c5d09676ee65d3466f.tar.gz
binaryen-0be8d5e07e5f893705bc36c5d09676ee65d3466f.tar.bz2
binaryen-0be8d5e07e5f893705bc36c5d09676ee65d3466f.zip
MergeBlocks: Optimize all dropped blocks (#6984)
Just call optimizeDroppedBlock from visitDrop to handle that. Followup to #6982. This optimizes the new testcase added there. Some older tests also improve.
Diffstat (limited to 'test/lit/passes/monomorphize-drop.wast')
-rw-r--r--test/lit/passes/monomorphize-drop.wast7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/lit/passes/monomorphize-drop.wast b/test/lit/passes/monomorphize-drop.wast
index a9f0e1f06..2c6834204 100644
--- a/test/lit/passes/monomorphize-drop.wast
+++ b/test/lit/passes/monomorphize-drop.wast
@@ -672,12 +672,7 @@
;; CAREFUL: (func $return-normal_4 (type $1)
;; CAREFUL-NEXT: (drop
-;; CAREFUL-NEXT: (block
-;; CAREFUL-NEXT: (drop
-;; CAREFUL-NEXT: (call $import)
-;; CAREFUL-NEXT: )
-;; CAREFUL-NEXT: (return)
-;; CAREFUL-NEXT: )
+;; CAREFUL-NEXT: (call $import)
;; CAREFUL-NEXT: )
;; CAREFUL-NEXT: )