File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments