brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 97dfbd0 Raw
55 lines · plain
1# RUN: llc -mtriple=amdgcn-- -run-pass=print-machine-uniformity -o - %s 2>&1 | FileCheck %s2# RUN: llc -mtriple=amdgcn-- -passes='print<machine-uniformity>' -filetype=null %s 2>&1 | FileCheck %s3 4# This test was generated using SelectionDAG, where the compilation flow does5# not match the assumptions made in MachineUA. For now, this test mostly serves6# the purpose of catching in any crash when invoking MachineUA. The test should7# be deleted when it is clear that it is not actually testing anything useful.8 9# CHECK-LABEL: MachineUniformityInfo for function:  @irreducible10 11---12name:            irreducible13tracksRegLiveness: true14machineFunctionInfo:15  isEntryFunction: true16body:             |17  bb.0:18    successors: %bb.1, %bb.219    liveins: $vgpr0, $vgpr1, $vgpr2, $sgpr4_sgpr5, $sgpr6_sgpr7, $sgpr8_sgpr9, $sgpr10_sgpr11, $sgpr14, $sgpr15, $sgpr1620 21    %0:sreg_32 = IMPLICIT_DEF22    %2:vgpr_32 = COPY $vgpr023    %3:vgpr_32 = V_MOV_B32_e32 0, implicit $exec24    S_CMP_EQ_U32 %0, 0, implicit-def $scc25    S_CBRANCH_SCC1 %bb.1, implicit $scc26    S_BRANCH %bb.227 28  bb.1:29    %28:vgpr_32 = PHI %3, %bb.0, %49, %bb.530    %29:vgpr_32 = V_ADD_U32_e64 %28, 1, 0, implicit $exec31    S_BRANCH %bb.332 33  bb.2:34    %38:vgpr_32 = PHI %3, %bb.0, %49, %bb.435    %39:vgpr_32 = V_ADD_U32_e64 %38, 2, 0, implicit $exec36 37  bb.3:38    %49:vgpr_32 = PHI %29, %bb.1, %39, %bb.239 40  bb.4:41    successors: %bb.2, %bb.542 43    %50:vgpr_32 = V_AND_B32_e32 3, %2, implicit $exec44    %51:sreg_64 = V_CMP_EQ_U32_e64 %50, 2, implicit $exec45    %52:sreg_64 = SI_IF killed %51:sreg_64, %bb.2, implicit-def dead $exec, implicit-def dead $scc, implicit $exec46 47  bb.5:48    successors: %bb.1, %bb.649    %61:sreg_64 = V_CMP_EQ_U32_e64 %50, 1, implicit $exec50    %62:sreg_64 = SI_IF killed %61:sreg_64, %bb.1, implicit-def dead $exec, implicit-def dead $scc, implicit $exec51 52  bb.6:53    S_ENDPGM 054...55