brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.5 KiB · 5c206da Raw
57 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 52# RUN: llc -mtriple=amdgcn -mcpu=gfx900 -run-pass=si-fold-operands -o - %s | FileCheck %s3 4---5liveins:6name:            do_not_fold_copy_with_implicit_exec7tracksRegLiveness: true8body:             |9  ; CHECK-LABEL: name: do_not_fold_copy_with_implicit_exec10  ; CHECK: bb.0:11  ; CHECK-NEXT:   successors: %bb.1(0x80000000)12  ; CHECK-NEXT: {{  $}}13  ; CHECK-NEXT:   [[S_MOV_B64_:%[0-9]+]]:sreg_64 = S_MOV_B64 014  ; CHECK-NEXT:   [[S_MOV_B64_1:%[0-9]+]]:sreg_64 = S_MOV_B64 015  ; CHECK-NEXT:   [[S_MOV_B32_:%[0-9]+]]:sreg_32 = S_MOV_B32 0, implicit $exec16  ; CHECK-NEXT:   S_BRANCH %bb.117  ; CHECK-NEXT: {{  $}}18  ; CHECK-NEXT: bb.1:19  ; CHECK-NEXT:   successors: %bb.1(0x40000000), %bb.2(0x40000000)20  ; CHECK-NEXT: {{  $}}21  ; CHECK-NEXT:   [[PHI:%[0-9]+]]:sreg_64 = PHI [[S_MOV_B64_1]], %bb.0, %4, %bb.122  ; CHECK-NEXT:   [[PHI1:%[0-9]+]]:sreg_32 = PHI [[S_MOV_B32_]], %bb.0, %6, %bb.123  ; CHECK-NEXT:   [[S_ADD_I32_:%[0-9]+]]:sreg_32 = S_ADD_I32 [[PHI1]], 1, implicit-def dead $scc24  ; CHECK-NEXT:   [[SI_IF_BREAK:%[0-9]+]]:sreg_64 = SI_IF_BREAK [[S_MOV_B64_]], [[PHI]], implicit-def dead $scc25  ; CHECK-NEXT:   [[COPY:%[0-9]+]]:vgpr_32 = COPY [[S_ADD_I32_]], implicit $exec26  ; CHECK-NEXT:   SI_LOOP [[SI_IF_BREAK]], %bb.1, implicit-def dead $exec, implicit-def dead $scc, implicit $exec27  ; CHECK-NEXT:   S_BRANCH %bb.228  ; CHECK-NEXT: {{  $}}29  ; CHECK-NEXT: bb.2:30  ; CHECK-NEXT:   SI_END_CF [[SI_IF_BREAK]], implicit-def dead $exec, implicit-def dead $scc, implicit $exec31  ; CHECK-NEXT:   [[DEF:%[0-9]+]]:sreg_64_xexec = IMPLICIT_DEF32  ; CHECK-NEXT:   [[V_SET_INACTIVE_B32_:%[0-9]+]]:vgpr_32 = V_SET_INACTIVE_B32 0, [[COPY]], 0, 0, killed [[DEF]], implicit $exec33  ; CHECK-NEXT:   S_ENDPGM 034 35  bb.0:36    %0:sreg_64 = S_MOV_B64 037    %1:sreg_64 = S_MOV_B64 038    %2:sreg_32 = S_MOV_B32 0, implicit $exec39    S_BRANCH %bb.140 41  bb.1:42    %3:sreg_64 = PHI %1, %bb.0, %4, %bb.143    %5:sreg_32 = PHI %2, %bb.0, %6, %bb.144    %6:sreg_32 = S_ADD_I32 %5, 1, implicit-def dead $scc45    %4:sreg_64 = SI_IF_BREAK %0, %3, implicit-def dead $scc46    %7:vgpr_32 = COPY %6, implicit $exec47    SI_LOOP %4, %bb.1, implicit-def dead $exec, implicit-def dead $scc, implicit $exec48    S_BRANCH %bb.249 50  bb.2:51    SI_END_CF %4, implicit-def dead $exec, implicit-def dead $scc, implicit $exec52    %9:vgpr_32 = COPY %753    %10:sreg_64_xexec = IMPLICIT_DEF54    %11:vgpr_32 = V_SET_INACTIVE_B32 0, %9, 0, 0, killed %10, implicit $exec55    S_ENDPGM 056...57