summaryrefslogtreecommitdiff
path: root/test/lit/help
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-01-24 14:23:34 -0800
committerGitHub <noreply@github.com>2023-01-24 14:23:34 -0800
commit5aa94e0d2fa397c178fe307537d36846683c22b7 (patch)
treec176508bfa3318b5e3561bc8258b28ee729b6a1c /test/lit/help
parentdd3091c87cc11ffe297632259cad18a64162e68b (diff)
downloadbinaryen-5aa94e0d2fa397c178fe307537d36846683c22b7.tar.gz
binaryen-5aa94e0d2fa397c178fe307537d36846683c22b7.tar.bz2
binaryen-5aa94e0d2fa397c178fe307537d36846683c22b7.zip
Add a mechanism to skip a pass by name (#5448)
For example, -O3 --skip-pass=vacuum will run -O3 normally but it will not run the vacuum pass at all (which normally runs more than once in -O3).
Diffstat (limited to 'test/lit/help')
-rw-r--r--test/lit/help/wasm-opt.test2
-rw-r--r--test/lit/help/wasm2js.test2
2 files changed, 4 insertions, 0 deletions
diff --git a/test/lit/help/wasm-opt.test b/test/lit/help/wasm-opt.test
index 8e04a756c..186382fd4 100644
--- a/test/lit/help/wasm-opt.test
+++ b/test/lit/help/wasm-opt.test
@@ -567,6 +567,8 @@
;; CHECK-NEXT: --zero-filled-memory,-uim Assume that an imported memory
;; CHECK-NEXT: will be zero-initialized
;; CHECK-NEXT:
+;; CHECK-NEXT: --skip-pass,-sp Skip a pass (do not run it)
+;; CHECK-NEXT:
;; CHECK-NEXT:
;; CHECK-NEXT: Tool options:
;; CHECK-NEXT: -------------
diff --git a/test/lit/help/wasm2js.test b/test/lit/help/wasm2js.test
index e023c2af5..501504027 100644
--- a/test/lit/help/wasm2js.test
+++ b/test/lit/help/wasm2js.test
@@ -526,6 +526,8 @@
;; CHECK-NEXT: --zero-filled-memory,-uim Assume that an imported memory
;; CHECK-NEXT: will be zero-initialized
;; CHECK-NEXT:
+;; CHECK-NEXT: --skip-pass,-sp Skip a pass (do not run it)
+;; CHECK-NEXT:
;; CHECK-NEXT:
;; CHECK-NEXT: Tool options:
;; CHECK-NEXT: -------------