Skip to content

Commit 869d367

Browse files
committed
[NFS] Directly use getMaxNum{S,V}GPRs methods
Using the base versions was necessary when we were not using the default range of waves/EU. We use the default range now so we can directly use the "regular" methods.
1 parent 26525f2 commit 869d367

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,11 +1863,8 @@ bool PreRARematStage::canIncreaseOccupancyOrReduceSpill() {
18631863
const Function &F = MF.getFunction();
18641864

18651865
std::pair<unsigned, unsigned> WavesPerEU = ST.getWavesPerEU(F);
1866-
const unsigned MaxSGPRsNoSpill = ST.getBaseMaxNumSGPRs(
1867-
F, WavesPerEU, ST.getMaxNumPreloadedSGPRs(), ST.getReservedNumSGPRs(F));
1868-
const unsigned MaxVGPRsNoSpill =
1869-
ST.getBaseMaxNumVGPRs(F, {ST.getMinNumVGPRs(WavesPerEU.second),
1870-
ST.getMaxNumVGPRs(WavesPerEU.first)});
1866+
const unsigned MaxSGPRsNoSpill = ST.getMaxNumSGPRs(F);
1867+
const unsigned MaxVGPRsNoSpill = ST.getMaxNumVGPRs(F);
18711868
const unsigned MaxSGPRsIncOcc =
18721869
ST.getMaxNumSGPRs(DAG.MinOccupancy + 1, false);
18731870
const unsigned MaxVGPRsIncOcc = ST.getMaxNumVGPRs(DAG.MinOccupancy + 1);

0 commit comments

Comments
 (0)