# RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -start-before=livevars -stop-after=twoaddressinstruction -verify-machineinstrs -o - %s 2>&1 | FileCheck %s # CHECK: *** Bad machine code: LiveVariables: Block missing from AliveBlocks *** # CHECK-NEXT: function: live_variables_update_block_split_split_def_before_si_end_cf_live_out # CHECK-NEXT: basic block: %bb.4 # CHECK-NEXT: Virtual register %8 must be live through the block. # Same as # live_variables_update_block_split_split_killed_def_before_si_end_cf, # except the def before si_end_cf is live out of the block --- name: live_variables_update_block_split_split_def_before_si_end_cf_live_out tracksRegLiveness: true body: | bb.0: liveins: $vgpr0 %0:vgpr_32 = COPY killed $vgpr0 %1:vgpr_32 = V_MOV_B32_e32 0, implicit $exec %2:sreg_64_xexec = V_CMP_EQ_U32_e64 0, killed %0, implicit $exec %3:sreg_64_xexec = SI_IF %2, %bb.1, implicit-def $exec, implicit-def dead $scc, implicit $exec S_BRANCH %bb.3 bb.1: %4:sreg_64_xexec = PHI %5, %bb.3, %3, %bb.0 %6:vgpr_32 = PHI %7, %bb.3, %1, %bb.0 %8:sreg_64 = S_MOV_B64 1 SI_END_CF killed %4, implicit-def $exec, implicit-def dead $scc, implicit $exec %9:vgpr_32 = nsw V_ADD_U32_e32 1, killed %6, implicit $exec bb.2: S_NOP 0, implicit killed %8 bb.3: %10:vgpr_32 = PHI %9, %bb.2, %7, %bb.3, %1, %bb.0 GLOBAL_STORE_DWORD undef %11:vreg_64, %10, 0, 0, implicit $exec :: (volatile store (s32), addrspace 1) %7:vgpr_32 = COPY killed %10 %5:sreg_64_xexec = SI_IF %2, %bb.1, implicit-def $exec, implicit-def dead $scc, implicit $exec S_BRANCH %bb.3 ...