24 lines · plain
1# RUN: llc -mtriple=wasm32-unknown-unknown -run-pass wasm-explicit-locals -wasm-keep-registers %s -o - | FileCheck %s2 3# When a drop instruction is inserted to drop a dead register operand, the4# original operand should be marked not dead anymore because it is now used by5# the new drop instruction. And the operand to the new drop instruction should6# be marked killed instead.7---8name: drop_test9liveins:10 - { reg: '$arguments' }11tracksRegLiveness: true12body: |13 bb.0:14 successors: %bb.115 liveins: $arguments16 17 bb.1:18 ; predecessors: %bb.019 ; CHECK-NOT: dead %{{[0-9]+}}20 ; CHECK: DROP_I32 killed %{{[0-9]+}}21 dead %0:i32 = CONST_I32 0, implicit-def dead $arguments, implicit $sp32, implicit $sp6422 RETURN implicit-def dead $arguments23...24