Skip to content

Commit 6b7078e

Browse files
committed
nice
1 parent 33b327c commit 6b7078e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

test/lit/passes/inlining_splitting.wast

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,9 +1276,6 @@
12761276
(call $unreachable-if-body-no-result (ref.null any))
12771277
)
12781278

1279-
1280-
1281-
12821279
;; CHECK: (func $nop (type $2) (param $x anyref) (result anyref)
12831280
;; CHECK-NEXT: (loop $loop
12841281
;; CHECK-NEXT: (if
@@ -1341,7 +1338,9 @@
13411338
(then
13421339
(if
13431340
(i32.const 1)
1344-
;; The return_call here prevents the optimization.
1341+
;; The return_call here prevents the optimization (nothing is inlined
1342+
;; in our caller, below), just like the return in the previous
1343+
;; testcase.
13451344
(then
13461345
(return_call $nop
13471346
(local.get $x)
@@ -1369,14 +1368,11 @@
13691368
;; CHECK-NEXT: )
13701369
;; CHECK-NEXT: )
13711370
(func $call-reachable-if-body-return_call
1371+
;; We do not inline here.
13721372
(drop (call $reachable-if-body-return_call (ref.null any)))
13731373
(drop (call $reachable-if-body-return_call (ref.null any)))
13741374
)
13751375

1376-
1377-
1378-
1379-
13801376
(func $multi-if (param $x anyref) (result anyref)
13811377
(if
13821378
(ref.is_null

0 commit comments

Comments
 (0)