diff options
author | Alon Zakai <azakai@google.com> | 2023-05-05 10:19:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 17:19:58 +0000 |
commit | a2fca965807a62f6c84739df88bcffbb7c7b74e4 (patch) | |
tree | c7246f9e401f6f65327f1b0027d72a316490832a /test/lit/passes/O4_disable-bulk-memory.wast | |
parent | 515690c397c772f6eb0f9747c51fab69046c606b (diff) | |
download | binaryen-a2fca965807a62f6c84739df88bcffbb7c7b74e4.tar.gz binaryen-a2fca965807a62f6c84739df88bcffbb7c7b74e4.tar.bz2 binaryen-a2fca965807a62f6c84739df88bcffbb7c7b74e4.zip |
Generate unique block names when inlining (#5697)
Each time we inline we put the contents in a block. Before we used the same name
each time we inlined the same method, and as a result had many conflicts if a
function was inlined many times. With this PR we emit a different name each
time.
This is not 100% NFC as it does change block names, which is observable in the IR
(as can be seen in the test updates).
This helps #5696 in speeding up UniqueNameManner.
Diffstat (limited to 'test/lit/passes/O4_disable-bulk-memory.wast')
-rw-r--r-- | test/lit/passes/O4_disable-bulk-memory.wast | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lit/passes/O4_disable-bulk-memory.wast b/test/lit/passes/O4_disable-bulk-memory.wast index 2d7f92299..89a172661 100644 --- a/test/lit/passes/O4_disable-bulk-memory.wast +++ b/test/lit/passes/O4_disable-bulk-memory.wast @@ -1386,8 +1386,8 @@ ;; CHECK-NEXT: ) ;; CHECK-NEXT: (i32.const 0) ;; CHECK-NEXT: ) - ;; CHECK-NEXT: (block $__inlined_func$~lib/internal/memory/memset - ;; CHECK-NEXT: (br_if $__inlined_func$~lib/internal/memory/memset + ;; CHECK-NEXT: (block $__inlined_func$~lib/internal/memory/memset$8 + ;; CHECK-NEXT: (br_if $__inlined_func$~lib/internal/memory/memset$8 ;; CHECK-NEXT: (i32.le_u ;; CHECK-NEXT: (local.get $1) ;; CHECK-NEXT: (i32.const 8) @@ -1426,7 +1426,7 @@ ;; CHECK-NEXT: ) ;; CHECK-NEXT: (i32.const 0) ;; CHECK-NEXT: ) - ;; CHECK-NEXT: (br_if $__inlined_func$~lib/internal/memory/memset + ;; CHECK-NEXT: (br_if $__inlined_func$~lib/internal/memory/memset$8 ;; CHECK-NEXT: (i32.le_u ;; CHECK-NEXT: (local.get $1) ;; CHECK-NEXT: (i32.const 24) |