diff options
author | Alon Zakai <azakai@google.com> | 2021-11-18 16:16:19 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 16:16:19 -0800 |
commit | be672c057bcb39b27f34f4031eea747bd72161d2 (patch) | |
tree | d3696677f15f23818be29b1bb0856a47fbe8b5f3 /test/lit/help/optimization-opts.test | |
parent | cba41cc227346c8a8357aa06bb1d916663c29dfe (diff) | |
download | binaryen-be672c057bcb39b27f34f4031eea747bd72161d2.tar.gz binaryen-be672c057bcb39b27f34f4031eea747bd72161d2.tar.bz2 binaryen-be672c057bcb39b27f34f4031eea747bd72161d2.zip |
[Wasm GC] Global Refining pass (#4344)
Fairly simple, this uses the existing infrastructure to find opportunities
to refine the type of a global variable. This a common pattern in j2wasm
for example, where a global begins as a null of $java.lang.Object (the
least specific type) but it is in practice always assigned an object of
some specific type.
Diffstat (limited to 'test/lit/help/optimization-opts.test')
-rw-r--r-- | test/lit/help/optimization-opts.test | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lit/help/optimization-opts.test b/test/lit/help/optimization-opts.test index af23314de..6667c45bf 100644 --- a/test/lit/help/optimization-opts.test +++ b/test/lit/help/optimization-opts.test @@ -275,6 +275,8 @@ ;; CHECK-NEXT: ;; CHECK-NEXT: --generate-stack-ir generate Stack IR ;; CHECK-NEXT: +;; CHECK-NEXT: --global-refining refine the types of globals +;; CHECK-NEXT: ;; CHECK-NEXT: --gto globally optimize GC types ;; CHECK-NEXT: ;; CHECK-NEXT: --heap2local replace GC allocations with |