Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 9016ce4

Browse files
committed
[AMDGPU] Fix typo in GCNSchedStrategy
Differential revision: https://reviews.llvm.org/D28980 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293171 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 5db8081 commit 9016ce4

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

lib/Target/AMDGPU/GCNSchedStrategy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void GCNMaxOccupancySchedStrategy::initCandidate(SchedCandidate &Cand, SUnit *SU
103103

104104
if (ShouldTrackSGPRs && NewSGPRPressure >= SGPRExcessLimit) {
105105
Cand.RPDelta.Excess = PressureChange(SRI->getSGPRPressureSet());
106-
Cand.RPDelta.Excess.setUnitInc(NewSGPRPressure = SGPRExcessLimit);
106+
Cand.RPDelta.Excess.setUnitInc(NewSGPRPressure - SGPRExcessLimit);
107107
}
108108

109109
// Register pressure is considered 'CRITICAL' if it is approaching a value

test/CodeGen/AMDGPU/attr-amdgpu-num-sgpr.ll

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,11 @@
44
; If spilling to smem, additional registers are used for the resource
55
; descriptor.
66

7-
; ALL-LABEL: {{^}}max_12_sgprs:
7+
; ALL-LABEL: {{^}}max_9_sgprs:
88

9-
; FIXME: Should be ablo to skip this copying of the private segment
10-
; buffer because all the SGPR spills are to VGPRs.
11-
12-
; ALL: s_mov_b64 s[10:11], s[2:3]
13-
; ALL: s_mov_b64 s[8:9], s[0:1]
149
; ALL: SGPRBlocks: 1
15-
; ALL: NumSGPRsForWavesPerEU: 14
16-
define void @max_12_sgprs(i32 addrspace(1)* %out1,
10+
; ALL: NumSGPRsForWavesPerEU: 9
11+
define void @max_9_sgprs(i32 addrspace(1)* %out1,
1712

1813
i32 addrspace(1)* %out2,
1914
i32 addrspace(1)* %out3,

0 commit comments

Comments
 (0)