brintos

brintos / llvm-project-archived public Read only

0
0
Text · 777 B · 9dc44c6 Raw
34 lines · plain
1# RUN: llc -mtriple=amdgcn  -run-pass=early-machinelicm -o - %s | FileCheck %s2# RUN: llc -mtriple=amdgcn  -passes=early-machinelicm -o - %s | FileCheck %s3 4# Test to check machine LICM does not hoist convergent instructions,5# DS_PERMUTE_B32 in this example.6 7---8# CHECK-LABEL: name: _amdgpu_cs_main9# CHECK: bb.1:10# CHECK: DS_PERMUTE_B3211 12name: _amdgpu_cs_main13body: |14  bb.0:15    liveins: $vgpr0, $vgpr116    successors: %bb.117 18    %0:vgpr_32 = COPY $vgpr019    %1:vgpr_32 = COPY $vgpr120 21  bb.1:22    successors: %bb.1, %bb.223 24    %2:vgpr_32 = DS_PERMUTE_B32 %0, %1, 0, implicit $exec25    %3:vgpr_32 = V_ADD_CO_U32_e32 %0, %2, implicit-def $vcc, implicit $exec26    S_CBRANCH_SCC1 %bb.1, implicit undef $scc27    S_BRANCH %bb.228 29  bb.2:30    $vgpr0 = COPY %331    S_ENDPGM 032 33...34