1 # RUN: llc -mtriple=amdgcn -misched=converge -run-pass machine-scheduler %s -o - -debug-only=machine-scheduler 2>&1 | FileCheck %s
2 # RUN: llc -mtriple=amdgcn -misched-regpressure=false -run-pass machine-scheduler %s -o - -debug-only=machine-scheduler 2>&1 | FileCheck %s --check-prefix=NORP
6 # Check there is no SReg_32 pressure created by DS_* instructions because of M0 use
8 # CHECK: ScheduleDAGMILive::schedule starting
9 # CHECK: SU({{.*}} = DS_READ_B32 {{.*}} implicit $m0, implicit $exec
10 # CHECK: Pressure Diff : {{$}}
11 # CHECK: SU({{.*}} DS_WRITE_B32
13 # NORP: ScheduleDAGMILive::schedule starting
14 # NORP: GenericScheduler RegionPolicy: ShouldTrackPressure=0
15 # 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: UpdateRegP
23 # NORP-NOT: UpdateRegP
24 # NORP-NOT: UpdateRegP
29 exposesReturnsTwice: false
31 regBankSelected: false
33 tracksRegLiveness: true
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 }
45 - { reg: '$sgpr4_sgpr5', virtual-reg: '%1' }
47 isFrameAddressTaken: false
48 isReturnAddressTaken: false
57 hasOpaqueSPAdjustment: false
59 hasMustTailInVarArgFunc: false
64 %1 = COPY $sgpr4_sgpr5
65 %5 = S_LOAD_DWORD_IMM %1, 0, 0 :: (non-temporal dereferenceable invariant load (s32) from `ptr addrspace(4) undef`)
68 %6 = DS_READ_B32 %7, 0, 0, implicit $m0, implicit $exec
69 DS_WRITE_B32 %7, %6, 4, 0, implicit killed $m0, implicit $exec