Skip to content

Commit b412e9c

Browse files
author
Tony Linthicum
committed
Remove unnecessary second hasFFX90AInsts conditional check
1 parent 028ca2e commit b412e9c

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

llvm/lib/Target/AMDGPU/GCNRegPressure.h

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,11 @@ struct GCNRegPressure {
120120
unsigned AGPRSpill =
121121
AGPRPressure > AGPRThreshold ? (AGPRPressure - AGPRThreshold) : 0;
122122

123-
unsigned UnifiedSpill = 0;
124-
125-
if (ST.hasGFX90AInsts()) {
126-
unsigned CombinedThreshold = ST.getMaxNumVGPRs(MF);
127-
unsigned UnifiedPressure = getVGPRNum(true);
128-
UnifiedSpill = UnifiedPressure > CombinedThreshold
129-
? (UnifiedPressure - CombinedThreshold)
130-
: 0;
131-
}
123+
unsigned CombinedThreshold = ST.getMaxNumVGPRs(MF);
124+
unsigned UnifiedPressure = getVGPRNum(true);
125+
unsigned UnifiedSpill = UnifiedPressure > CombinedThreshold
126+
? (UnifiedPressure - CombinedThreshold)
127+
: 0;
132128

133129
return std::max(UnifiedSpill, (ArchSpill + AGPRSpill));
134130
}

0 commit comments

Comments
 (0)