73 lines · plain
1# RUN: llc -mtriple=amdgcn -misched=converge -run-pass machine-scheduler %s -o - -debug-only=machine-scheduler 2>&1 | FileCheck %s2# RUN: llc -mtriple=amdgcn -misched-regpressure=false -run-pass machine-scheduler %s -o - -debug-only=machine-scheduler 2>&1 | FileCheck %s --check-prefix=NORP3 4# REQUIRES: asserts5 6# Check there is no SReg_32 pressure created by DS_* instructions because of M0 use7 8# CHECK: ScheduleDAGMILive::schedule starting9# CHECK: SU({{.*}} = DS_READ_B32 {{.*}} implicit $m0, implicit $exec10# CHECK: Pressure Diff : {{$}}11# CHECK: SU({{.*}} DS_WRITE_B3212 13# NORP: ScheduleDAGMILive::schedule starting14# NORP: GenericScheduler RegionPolicy: ShouldTrackPressure=015# NORP-NOT: Pressure Diff : {{$}}16# NORP-NOT: Pressure Diff : {{$}}17# NORP-NOT: Pressure Diff : {{$}}18# NORP-NOT: Pressure Diff : {{$}}19# NORP-NOT: Pressure Diff : {{$}}20# NORP-NOT: Pressure Diff : {{$}}21# NORP-NOT: Bottom Pressure:22# NORP-NOT: UpdateRegP23# NORP-NOT: UpdateRegP24# NORP-NOT: UpdateRegP25 26---27name: mo_pset28alignment: 129exposesReturnsTwice: false30legalized: false31regBankSelected: false32selected: false33tracksRegLiveness: true34registers:35 - { id: 0, class: sgpr_128 }36 - { id: 1, class: sgpr_64 }37 - { id: 2, class: sreg_32_xm0 }38 - { id: 3, class: sgpr_32 }39 - { id: 4, class: vgpr_32 }40 - { id: 5, class: sreg_32_xm0_xexec }41 - { id: 6, class: vgpr_32 }42 - { id: 7, class: vgpr_32 }43 - { id: 8, class: vgpr_32 }44liveins:45 - { reg: '$sgpr4_sgpr5', virtual-reg: '%1' }46frameInfo:47 isFrameAddressTaken: false48 isReturnAddressTaken: false49 hasStackMap: false50 hasPatchPoint: false51 stackSize: 052 offsetAdjustment: 053 maxAlignment: 054 adjustsStack: false55 hasCalls: false56 maxCallFrameSize: 057 hasOpaqueSPAdjustment: false58 hasVAStart: false59 hasMustTailInVarArgFunc: false60body: |61 bb.0:62 liveins: $sgpr4_sgpr563 64 %1 = COPY $sgpr4_sgpr565 %5 = S_LOAD_DWORD_IMM %1, 0, 0 :: (non-temporal dereferenceable invariant load (s32) from `ptr addrspace(4) poison`)66 $m0 = S_MOV_B32 -167 %7 = COPY %568 %6 = DS_READ_B32 %7, 0, 0, implicit $m0, implicit $exec69 DS_WRITE_B32 %7, %6, 4, 0, implicit killed $m0, implicit $exec70 S_ENDPGM 071 72...73