Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tools/wasm-reduce/wasm-reduce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ struct Reducer
"--dce",
"--duplicate-function-elimination",
"--enclose-world",
"--gto",
"--gto --closed-world",
"--inlining",
"--inlining-optimizing",
"--optimize-level=3 --inlining-optimizing",
Expand Down
1 change: 1 addition & 0 deletions test/reduce/gc.wast
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(module
(rec
;; The funcref field can be optimized away with --gto.
(type $A (struct (field (mut i32)) (field funcref)))
;; This type can be optimized away.
(type $unused (struct))
Expand Down
2 changes: 1 addition & 1 deletion test/reduce/gc.wast.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(module
(type $0 (struct (field (mut i32)) (field funcref)))
(type $0 (struct (field (mut i32))))
(type $1 (func (result i32)))
(global $global$0 (ref null $0) (struct.new_default $0))
(export "use-global" (func $0))
Expand Down
Loading