File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -1130,6 +1130,15 @@ bool PreRARematStage::initGCNSchedStage() {
11301130}
11311131
11321132void GCNSchedStage::finalizeGCNSchedStage () {
1133+ unsigned MaxArchVGPR = 0 ;
1134+ for (auto P : DAG.Pressure ) {
1135+ if (P.getArchVGPRNum () > MaxArchVGPR)
1136+ MaxArchVGPR = P.getArchVGPRNum ();
1137+ }
1138+
1139+ MF.getInfo <SIMachineFunctionInfo>()->setMaxArchVGPRPressure (MaxArchVGPR);
1140+
1141+
11331142 DAG.finishBlock ();
11341143 LLVM_DEBUG (dbgs () << " Ending scheduling stage: " << StageID << " \n " );
11351144}
@@ -1263,14 +1272,6 @@ void GCNSchedStage::finalizeGCNRegion() {
12631272 // reason that the original schedule is better.
12641273 checkScheduling ();
12651274
1266- unsigned MaxArchVGPR = 0 ;
1267- for (auto P : DAG.Pressure ) {
1268- if (P.getArchVGPRNum () > MaxArchVGPR)
1269- MaxArchVGPR = P.getArchVGPRNum ();
1270- }
1271-
1272- MF.getInfo <SIMachineFunctionInfo>()->setMaxArchVGPRPressure (MaxArchVGPR);
1273-
12741275 if (DAG.RegionsWithIGLPInstrs [RegionIdx] &&
12751276 StageID != GCNSchedStageID::UnclusteredHighRPReschedule)
12761277 SavedMutations.swap (DAG.Mutations );
You can’t perform that action at this time.
0 commit comments