From 956d2d89d530012885c1f88c87bf8b872c187b70 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Thu, 25 Apr 2024 14:55:12 -0700 Subject: [Parser] Enable the new text parser by default (#6371) The new text parser is faster and more standards compliant than the old text parser. Enable it by default in wasm-opt and update the tests to reflect the slightly different results it produces. Besides following the spec, the new parser differs from the old parser in that it: - Does not synthesize `loop` and `try` labels unnecessarily - Synthesizes different block names in some cases - Parses exports in a different order - Parses `nop`s instead of empty blocks for empty control flow arms - Does not support parsing Poppy IR - Produces different error messages - Cannot parse `pop` except as the first instruction inside a `catch` --- ...ine-functions-with-loops_flexible-inline-max-function-size=30.wast | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/lit/passes/O3_inline-functions-with-loops_flexible-inline-max-function-size=30.wast') diff --git a/test/lit/passes/O3_inline-functions-with-loops_flexible-inline-max-function-size=30.wast b/test/lit/passes/O3_inline-functions-with-loops_flexible-inline-max-function-size=30.wast index 87dec51e3..7037baf7d 100644 --- a/test/lit/passes/O3_inline-functions-with-loops_flexible-inline-max-function-size=30.wast +++ b/test/lit/passes/O3_inline-functions-with-loops_flexible-inline-max-function-size=30.wast @@ -8,8 +8,6 @@ (type $t0 (func (param i32) (result i32))) ;; CHECK: (memory $memory 0) - ;; CHECK: (export "memory" (memory $memory)) - ;; CHECK: (export "fib" (func $fib)) ;; CHECK: (export "looped" (func $looped)) @@ -22,6 +20,8 @@ ;; CHECK: (export "t3" (func $t3)) + ;; CHECK: (export "memory" (memory $memory)) + ;; CHECK: (func $fib (; has Stack IR ;) (param $0 i32) (result i32) ;; CHECK-NEXT: (if ;; CHECK-NEXT: (i32.le_s -- cgit v1.2.3