@@ -1102,7 +1102,7 @@ bool RewriteScheduleStage::initGCNSchedStage() {
1102
1102
ST.getMaxNumVectorRegs (DAG.MF .getFunction ()).first ;
1103
1103
1104
1104
int64_t Cost = 0 ;
1105
- MBFI.calculate (MF, MBPI, *DAG.MLI );
1105
+ MBFI.calculate (MF, MBPI, *DAG.MLI );
1106
1106
for (unsigned RegionIdx = 0 ; RegionIdx < DAG.Regions .size (); RegionIdx++) {
1107
1107
if (!DAG.RegionsWithExcessArchVGPR [RegionIdx])
1108
1108
continue ;
@@ -1131,7 +1131,6 @@ bool RewriteScheduleStage::initGCNSchedStage() {
1131
1131
unsigned SpillCostBefore =
1132
1132
std::max (UnifiedSpillBefore, (ArchSpillBefore + AGPRSpillBefore));
1133
1133
1134
-
1135
1134
// For the cases we care about (i.e. ArchVGPR usage is greater than the
1136
1135
// addressable limit), rewriting alone should bring pressure to manageable
1137
1136
// level. If we find any such region, then the rewrite is potentially
@@ -1160,7 +1159,8 @@ bool RewriteScheduleStage::initGCNSchedStage() {
1160
1159
uint64_t EntryFreq = MBFI.getEntryFreq ().getFrequency ();
1161
1160
uint64_t BlockFreq =
1162
1161
EntryFreq ? MBFI.getBlockFreq (DAG.Regions [RegionIdx].first ->getParent ())
1163
- .getFrequency () / EntryFreq
1162
+ .getFrequency () /
1163
+ EntryFreq
1164
1164
: 1 ;
1165
1165
1166
1166
// Assumes perfect spilling -- giving edge to VGPR form.
@@ -1256,7 +1256,8 @@ bool RewriteScheduleStage::initGCNSchedStage() {
1256
1256
continue ;
1257
1257
1258
1258
Register DestVGPR;
1259
- if (!NewCopies.contains (DefReg) || !NewCopies[DefReg].contains (UseMI->getParent ())) {
1259
+ if (!NewCopies.contains (DefReg) ||
1260
+ !NewCopies[DefReg].contains (UseMI->getParent ())) {
1260
1261
Register DestVGPR = DAG.MRI .createVirtualRegister (
1261
1262
SRI->getEquivalentVGPRClass (DAG.MRI .getRegClass (DefReg)));
1262
1263
@@ -1270,7 +1271,8 @@ bool RewriteScheduleStage::initGCNSchedStage() {
1270
1271
1271
1272
NewCopies[DefReg][UseMI->getParent ()] = VGPRCopy;
1272
1273
}
1273
- DestVGPR = NewCopies[DefReg][UseMI->getParent ()]->getOperand (0 ).getReg ();
1274
+ DestVGPR =
1275
+ NewCopies[DefReg][UseMI->getParent ()]->getOperand (0 ).getReg ();
1274
1276
TheOp.setReg (DestVGPR);
1275
1277
}
1276
1278
}
@@ -1280,7 +1282,7 @@ bool RewriteScheduleStage::initGCNSchedStage() {
1280
1282
DAG.LIS ->removeInterval (DefReg);
1281
1283
DAG.LIS ->createAndComputeVirtRegInterval (DefReg);
1282
1284
DAG.LIS ->createAndComputeVirtRegInterval (
1283
- NewCopy.second ->getOperand (0 ).getReg ());
1285
+ NewCopy.second ->getOperand (0 ).getReg ());
1284
1286
}
1285
1287
}
1286
1288
}
@@ -1312,7 +1314,8 @@ bool RewriteScheduleStage::initGCNSchedStage() {
1312
1314
continue ;
1313
1315
1314
1316
Register SrcVGPR;
1315
- if (!NewCopies.contains (Src2Reg) || !NewCopies[Src2Reg].contains (DefMI->getParent ())) {
1317
+ if (!NewCopies.contains (Src2Reg) ||
1318
+ !NewCopies[Src2Reg].contains (DefMI->getParent ())) {
1316
1319
Register SrcVGPR = DAG.MRI .createVirtualRegister (
1317
1320
SRI->getEquivalentVGPRClass (DAG.MRI .getRegClass (Src2Reg)));
1318
1321
@@ -1326,7 +1329,8 @@ bool RewriteScheduleStage::initGCNSchedStage() {
1326
1329
NewCopies[Src2Reg][DefMI->getParent ()] = VGPRCopy;
1327
1330
}
1328
1331
1329
- SrcVGPR = NewCopies[Src2Reg][DefMI->getParent ()]->getOperand (1 ).getReg ();
1332
+ SrcVGPR =
1333
+ NewCopies[Src2Reg][DefMI->getParent ()]->getOperand (1 ).getReg ();
1330
1334
TheOp.setReg (SrcVGPR);
1331
1335
}
1332
1336
}
0 commit comments