diff options
author | Thomas Lively <tlively@google.com> | 2024-09-10 15:24:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-10 22:24:16 +0000 |
commit | 1a2d26f4092897f88f8fc60fc7a4dee2083ae531 (patch) | |
tree | 8cbf4ab801fef574ce1666b42aa296493dedba45 /test/lit/passes/gto-mutability.wast | |
parent | b0c955d4e5d1454dd9d6036d25ec9118146eee4c (diff) | |
download | binaryen-1a2d26f4092897f88f8fc60fc7a4dee2083ae531.tar.gz binaryen-1a2d26f4092897f88f8fc60fc7a4dee2083ae531.tar.bz2 binaryen-1a2d26f4092897f88f8fc60fc7a4dee2083ae531.zip |
Replace the old topological sort everywhere (#6902)
To avoid having two separate topological sort utilities in the code
base, replace remaining uses of the old DFS-based, CRTP topological sort
with the newer Kahn's algorithm implementation.
This would be NFC, except that the new topological sort produces a
different order than the old topological sort, so the output of some
passes is reordered.
Diffstat (limited to 'test/lit/passes/gto-mutability.wast')
-rw-r--r-- | test/lit/passes/gto-mutability.wast | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lit/passes/gto-mutability.wast b/test/lit/passes/gto-mutability.wast index 47a9e2315..13b416b1b 100644 --- a/test/lit/passes/gto-mutability.wast +++ b/test/lit/passes/gto-mutability.wast @@ -429,10 +429,10 @@ ;; optimize the field to be immutable. ;; CHECK: (rec - ;; CHECK-NEXT: (type $0 (func (param (ref null $super) (ref null $sub)))) - - ;; CHECK: (type $super (sub (struct (field i32)))) + ;; CHECK-NEXT: (type $super (sub (struct (field i32)))) (type $super (sub (struct (field (mut i32))))) + ;; CHECK: (type $1 (func (param (ref null $super) (ref null $sub)))) + ;; CHECK: (type $sub (sub $super (struct (field i32)))) (type $sub (sub $super (struct (field (mut i32))))) @@ -464,7 +464,7 @@ ) ) - ;; CHECK: (func $field-keepalive (type $0) (param $super (ref null $super)) (param $sub (ref null $sub)) + ;; CHECK: (func $field-keepalive (type $1) (param $super (ref null $super)) (param $sub (ref null $sub)) ;; CHECK-NEXT: (drop ;; CHECK-NEXT: (struct.get $super 0 ;; CHECK-NEXT: (local.get $super) |