37 lines · plain
1# RUN: llc -mtriple=mips64 -o - %s -run-pass=register-coalescer -verify-coalescing | FileCheck %s2 3---4name: f5tracksRegLiveness: true6body: |7 bb.0:8 %0:gpr32 = ADDiu $zero, 09 %1:gpr32 = COPY %010 %1:gpr32 = ADDiu %1, 111 BEQ %0, $zero, %bb.3, implicit-def $at12 J %bb.1, implicit-def dead $at13 14 bb.1:15 J %bb.2, implicit %1, implicit-def dead $at16 17 bb.2:18 %1:gpr32 = COPY %019 %0:gpr32 = COPY %120 BEQ %0:gpr32, $zero, %bb.2, implicit-def $at21 22 bb.3:23 %4:gpr32 = ADDiu %1, 124...25 26# We should not hoist the27#28# %1:gpr32 = COPY %029#30# into bb.1 since %1 is used in the terminating instruction J there.31 32# CHECK-LABEL: bb.1:33# CHECK-NOT: COPY34# CHECK: J35 36# CHECK-LABEL: bb.2:37