@@ -1102,7 +1102,7 @@ bool RewriteScheduleStage::initGCNSchedStage() {
11021102 ST.getMaxNumVectorRegs (DAG.MF .getFunction ()).first ;
11031103
11041104 int64_t Cost = 0 ;
1105- MBFI.calculate (MF, MBPI, *DAG.MLI );
1105+ MBFI.calculate (MF, MBPI, *DAG.MLI );
11061106 for (unsigned RegionIdx = 0 ; RegionIdx < DAG.Regions .size (); RegionIdx++) {
11071107 if (!DAG.RegionsWithExcessArchVGPR [RegionIdx])
11081108 continue ;
@@ -1131,7 +1131,6 @@ bool RewriteScheduleStage::initGCNSchedStage() {
11311131 unsigned SpillCostBefore =
11321132 std::max (UnifiedSpillBefore, (ArchSpillBefore + AGPRSpillBefore));
11331133
1134-
11351134 // For the cases we care about (i.e. ArchVGPR usage is greater than the
11361135 // addressable limit), rewriting alone should bring pressure to manageable
11371136 // level. If we find any such region, then the rewrite is potentially
@@ -1160,7 +1159,8 @@ bool RewriteScheduleStage::initGCNSchedStage() {
11601159 uint64_t EntryFreq = MBFI.getEntryFreq ().getFrequency ();
11611160 uint64_t BlockFreq =
11621161 EntryFreq ? MBFI.getBlockFreq (DAG.Regions [RegionIdx].first ->getParent ())
1163- .getFrequency () / EntryFreq
1162+ .getFrequency () /
1163+ EntryFreq
11641164 : 1 ;
11651165
11661166 // Assumes perfect spilling -- giving edge to VGPR form.
@@ -1256,7 +1256,8 @@ bool RewriteScheduleStage::initGCNSchedStage() {
12561256 continue ;
12571257
12581258 Register DestVGPR;
1259- if (!NewCopies.contains (DefReg) || !NewCopies[DefReg].contains (UseMI->getParent ())) {
1259+ if (!NewCopies.contains (DefReg) ||
1260+ !NewCopies[DefReg].contains (UseMI->getParent ())) {
12601261 Register DestVGPR = DAG.MRI .createVirtualRegister (
12611262 SRI->getEquivalentVGPRClass (DAG.MRI .getRegClass (DefReg)));
12621263
@@ -1270,7 +1271,8 @@ bool RewriteScheduleStage::initGCNSchedStage() {
12701271
12711272 NewCopies[DefReg][UseMI->getParent ()] = VGPRCopy;
12721273 }
1273- DestVGPR = NewCopies[DefReg][UseMI->getParent ()]->getOperand (0 ).getReg ();
1274+ DestVGPR =
1275+ NewCopies[DefReg][UseMI->getParent ()]->getOperand (0 ).getReg ();
12741276 TheOp.setReg (DestVGPR);
12751277 }
12761278 }
@@ -1280,7 +1282,7 @@ bool RewriteScheduleStage::initGCNSchedStage() {
12801282 DAG.LIS ->removeInterval (DefReg);
12811283 DAG.LIS ->createAndComputeVirtRegInterval (DefReg);
12821284 DAG.LIS ->createAndComputeVirtRegInterval (
1283- NewCopy.second ->getOperand (0 ).getReg ());
1285+ NewCopy.second ->getOperand (0 ).getReg ());
12841286 }
12851287 }
12861288 }
@@ -1312,7 +1314,8 @@ bool RewriteScheduleStage::initGCNSchedStage() {
13121314 continue ;
13131315
13141316 Register SrcVGPR;
1315- if (!NewCopies.contains (Src2Reg) || !NewCopies[Src2Reg].contains (DefMI->getParent ())) {
1317+ if (!NewCopies.contains (Src2Reg) ||
1318+ !NewCopies[Src2Reg].contains (DefMI->getParent ())) {
13161319 Register SrcVGPR = DAG.MRI .createVirtualRegister (
13171320 SRI->getEquivalentVGPRClass (DAG.MRI .getRegClass (Src2Reg)));
13181321
@@ -1326,7 +1329,8 @@ bool RewriteScheduleStage::initGCNSchedStage() {
13261329 NewCopies[Src2Reg][DefMI->getParent ()] = VGPRCopy;
13271330 }
13281331
1329- SrcVGPR = NewCopies[Src2Reg][DefMI->getParent ()]->getOperand (1 ).getReg ();
1332+ SrcVGPR =
1333+ NewCopies[Src2Reg][DefMI->getParent ()]->getOperand (1 ).getReg ();
13301334 TheOp.setReg (SrcVGPR);
13311335 }
13321336 }
0 commit comments