From fd8b2bd43d73cf1976426e60c22c5261fa343510 Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Tue, 16 Jul 2024 01:04:37 +0200 Subject: Allow different arguments for multiple instances of a pass (#6687) Each pass instance can now store an argument for it, which can be different. This may be a breaking change for the corner case of running a pass multiple times and setting the pass's argument multiple times as well (before, the last pass argument affected them all; now, it affects the last instance only). This only affects arguments with the name of a pass; others remain global, as before (and multiple passes can read them, in fact). See the CHANGELOG for details. Fixes #6646 --- test/lit/help/wasm-merge.test | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/lit/help/wasm-merge.test') diff --git a/test/lit/help/wasm-merge.test b/test/lit/help/wasm-merge.test index 293bdbff0..fe3f1cdb2 100644 --- a/test/lit/help/wasm-merge.test +++ b/test/lit/help/wasm-merge.test @@ -144,7 +144,12 @@ ;; CHECK-NEXT: ;; CHECK-NEXT: --pass-arg,-pa An argument passed along to optimization ;; CHECK-NEXT: passes being run. Must be in the form -;; CHECK-NEXT: KEY@VALUE +;; CHECK-NEXT: KEY@VALUE. If KEY is the name of a pass +;; CHECK-NEXT: then it applies to the closest instance +;; CHECK-NEXT: of that pass before us. If KEY is not the +;; CHECK-NEXT: name of a pass then it is a global option +;; CHECK-NEXT: that applies to all pass instances that +;; CHECK-NEXT: read it. ;; CHECK-NEXT: ;; CHECK-NEXT: --closed-world,-cw Assume code outside of the module does ;; CHECK-NEXT: not inspect or interact with GC and -- cgit v1.2.3