Skip to content

Commit 506890b

Browse files
committed
Use DAG.MRI
Change-Id: I9f0275a0cede9e77dfd29262124f2a856f436c8c
1 parent 076b3ab commit 506890b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -839,13 +839,11 @@ void GCNScheduleDAGMILive::runSchedStages() {
839839
GCNUpwardRPTracker *UpwardTracker = S.getUpwardTracker();
840840
GCNRPTracker::LiveRegSet *RegionLiveIns = &LiveIns[Stage->getRegionIdx()];
841841

842-
reinterpret_cast<GCNRPTracker *>(DownwardTracker)->reset(
843-
Regions[Stage->getRegionIdx()].first->getMF()->getRegInfo(),
844-
*RegionLiveIns);
845-
reinterpret_cast<GCNRPTracker *>(UpwardTracker)->reset(
846-
Regions[Stage->getRegionIdx()].first->getMF()->getRegInfo(),
847-
RegionLiveOuts.getLiveRegsForRegionIdx(Stage->getRegionIdx()));
848-
842+
reinterpret_cast<GCNRPTracker *>(DownwardTracker)
843+
->reset(MRI, *RegionLiveIns);
844+
reinterpret_cast<GCNRPTracker *>(UpwardTracker)
845+
->reset(MRI, RegionLiveOuts.getLiveRegsForRegionIdx(
846+
Stage->getRegionIdx()));
849847
}
850848

851849
ScheduleDAGMILive::schedule();

0 commit comments

Comments
 (0)