32 lines · plain
1# RUN: llc -o - %s -mtriple=amdgcn-amd-amdhsa-opencl -run-pass=register-coalescer | FileCheck %s2---3# Checks for a bug where subregister liveranges were not properly pruned for4# an IMPLCITI_DEF that gets removed completely.5#6# CHECK-LABEL: name: func7# IMPLICIT_DEF should be gone without llc hitting assertion failures.8# CHECK-NOT: IMPLICIT_DEF9name: func10tracksRegLiveness: true11body: |12 bb.0:13 undef %5.sub1 = V_MOV_B32_e32 0, implicit $exec14 %6 = COPY %515 S_CBRANCH_VCCZ %bb.2, implicit undef $vcc16 17 bb.1:18 %1 : sreg_32_xm0 = S_MOV_B32 019 undef %0.sub0 : sreg_64 = COPY %120 %0.sub1 = COPY %121 %4 : vreg_64 = COPY killed %022 %5 : vreg_64 = IMPLICIT_DEF23 %6 : vreg_64 = COPY killed %424 25 bb.2:26 %2 : vgpr_32 = V_CVT_F32_I32_e32 killed %5.sub1, implicit $mode, implicit $exec27 28 bb.3:29 %3 : vgpr_32 = V_CVT_F32_I32_e32 killed %6.sub1, implicit $mode, implicit $exec30 S_ENDPGM 031...32