2017-05-26 05:26:32 +08:00
|
|
|
# RUN: llc -march=amdgcn -misched=converge -run-pass machine-scheduler %s -o - -debug-only=machine-scheduler 2>&1 | FileCheck %s
|
2017-02-10 10:07:58 +08:00
|
|
|
# REQUIRES: asserts
|
|
|
|
|
|
|
|
# Check there is no SReg_32 pressure created by DS_* instructions because of M0 use
|
|
|
|
|
|
|
|
# CHECK: ScheduleDAGMILive::schedule starting
|
2018-02-01 06:04:26 +08:00
|
|
|
# CHECK: SU({{.*}} = DS_READ_B32 {{.*}} implicit $m0, implicit $exec
|
2017-02-10 10:07:58 +08:00
|
|
|
# CHECK: Pressure Diff : {{$}}
|
|
|
|
# CHECK: SU({{.*}} DS_WRITE_B32
|
|
|
|
|
|
|
|
---
|
|
|
|
name: mo_pset
|
[Alignment] Use llvm::Align in MachineFunction and TargetLowering - fixes mir parsing
Summary:
This catches malformed mir files which specify alignment as log2 instead of pow2.
See https://reviews.llvm.org/D65945 for reference,
This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790
Reviewers: courbet
Subscribers: MatzeB, qcolombet, dschuff, arsenm, sdardis, nemanjai, jvesely, nhaehnle, hiraditya, kbarton, asb, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, jrtc27, MaskRay, zzheng, edward-jones, atanasyan, rogfer01, MartinMosbeck, brucehoult, the_o, PkmX, jocewei, jsji, Petar.Avramovic, asbirlea, s.egerton, pzheng, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67433
llvm-svn: 371608
2019-09-11 19:16:48 +08:00
|
|
|
alignment: 1
|
2017-02-10 10:07:58 +08:00
|
|
|
exposesReturnsTwice: false
|
|
|
|
legalized: false
|
|
|
|
regBankSelected: false
|
|
|
|
selected: false
|
|
|
|
tracksRegLiveness: true
|
|
|
|
registers:
|
2019-10-10 15:11:33 +08:00
|
|
|
- { id: 0, class: sgpr_128 }
|
2017-02-10 10:07:58 +08:00
|
|
|
- { id: 1, class: sgpr_64 }
|
|
|
|
- { id: 2, class: sreg_32_xm0 }
|
|
|
|
- { id: 3, class: sgpr_32 }
|
|
|
|
- { id: 4, class: vgpr_32 }
|
|
|
|
- { id: 5, class: sreg_32_xm0_xexec }
|
|
|
|
- { id: 6, class: vgpr_32 }
|
|
|
|
- { id: 7, class: vgpr_32 }
|
|
|
|
- { id: 8, class: vgpr_32 }
|
|
|
|
liveins:
|
2018-02-01 06:04:26 +08:00
|
|
|
- { reg: '$sgpr4_sgpr5', virtual-reg: '%1' }
|
2017-02-10 10:07:58 +08:00
|
|
|
frameInfo:
|
|
|
|
isFrameAddressTaken: false
|
|
|
|
isReturnAddressTaken: false
|
|
|
|
hasStackMap: false
|
|
|
|
hasPatchPoint: false
|
|
|
|
stackSize: 0
|
|
|
|
offsetAdjustment: 0
|
|
|
|
maxAlignment: 0
|
|
|
|
adjustsStack: false
|
|
|
|
hasCalls: false
|
|
|
|
maxCallFrameSize: 0
|
|
|
|
hasOpaqueSPAdjustment: false
|
|
|
|
hasVAStart: false
|
|
|
|
hasMustTailInVarArgFunc: false
|
|
|
|
body: |
|
|
|
|
bb.0:
|
2018-02-01 06:04:26 +08:00
|
|
|
liveins: $sgpr4_sgpr5
|
2017-02-10 10:07:58 +08:00
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
%1 = COPY $sgpr4_sgpr5
|
2019-05-01 06:08:23 +08:00
|
|
|
%5 = S_LOAD_DWORD_IMM %1, 0, 0, 0 :: (non-temporal dereferenceable invariant load 4 from `i32 addrspace(4)* undef`)
|
2018-02-01 06:04:26 +08:00
|
|
|
$m0 = S_MOV_B32 -1
|
2017-02-10 10:07:58 +08:00
|
|
|
%7 = COPY %5
|
2018-02-01 06:04:26 +08:00
|
|
|
%6 = DS_READ_B32 %7, 0, 0, implicit $m0, implicit $exec
|
|
|
|
DS_WRITE_B32 %7, %6, 4, 0, implicit killed $m0, implicit $exec
|
[AMDGPU] Add support for immediate operand for S_ENDPGM
Summary:
Add support for immediate operand in S_ENDPGM
Change-Id: I0c56a076a10980f719fb2a8f16407e9c301013f6
Reviewers: alexshap
Subscribers: qcolombet, arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, tpr, t-tye, eraman, arphaman, Petar.Avramovic, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D59213
llvm-svn: 355902
2019-03-12 17:52:58 +08:00
|
|
|
S_ENDPGM 0
|
2017-02-10 10:07:58 +08:00
|
|
|
|
|
|
|
...
|