summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-04-05 17:25:06 -0700
committerGitHub <noreply@github.com>2024-04-06 00:25:06 +0000
commit98f08effb18a94618ef12f25134c289836fc316e (patch)
treec54d719fb8baf25f6d9dd26bf34e3349834d0c95 /test
parente862d5c8bb886a5a4dd13ff1559c376ecfde66b2 (diff)
downloadbinaryen-98f08effb18a94618ef12f25134c289836fc316e.tar.gz
binaryen-98f08effb18a94618ef12f25134c289836fc316e.tar.bz2
binaryen-98f08effb18a94618ef12f25134c289836fc316e.zip
[NFC] Refactor Heap2Local logic (#6473)
Separate out an EscapeAnalyzer class that does the escape analysis, and a Struct2Local one that does the optimization. Also make a few things const here to be safer.
Diffstat (limited to 'test')
-rw-r--r--test/lit/passes/heap2local.wast4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lit/passes/heap2local.wast b/test/lit/passes/heap2local.wast
index b693c49ee..be6538a94 100644
--- a/test/lit/passes/heap2local.wast
+++ b/test/lit/passes/heap2local.wast
@@ -2045,8 +2045,8 @@
;; CHECK-NEXT: )
(func $cast-failure (result anyref)
(struct.get $B 0
- ;; The allocated $A arrives here, but the cast will fail,
- ;; so we do not optimize.
+ ;; The allocated $A arrives here, but the cast will fail, so we do not
+ ;; optimize.
(ref.cast (ref $B)
(struct.new $A
(struct.new $A