28 lines · plain
1# RUN: llc -mtriple=wasm32-unknown-unknown -run-pass wasm-cfg-stackify %s -o - | FileCheck %s2 3# This tests if END_LOOP marker is placed correctly when the BB it is to be4# placed is unreachable. Regression test for PR41307.5 6# CHECK-LABEL: unreachable_test7name: unreachable_test8liveins:9 - { reg: '$arguments' }10body: |11 bb.0:12 successors: %bb.113 14 bb.1:15 ; predecessors: %bb.0, %bb.216 successors: %bb.217 18 bb.2:19 ; predecessors: %bb.120 successors: %bb.121 BR %bb.1, implicit-def dead $arguments22 23 ; CHECK: bb.324 ; CHECK: END_LOOP25 bb.3:26 UNREACHABLE implicit-def $arguments27...28