forked from OSchip/llvm-project
AMDGPU/SI: Enable testing several variants for si scheduler
Enable testing different scheduling variants if sgpr usage is very high. It was previously disabled because of a bug in handleMove, but it has been fixed since. Patch by Axel Davy llvm-svn: 274372
This commit is contained in:
parent
6b560f0dd9
commit
105c2a204c
|
@ -1826,7 +1826,7 @@ void SIScheduleDAGMI::schedule()
|
|||
SIScheduler Scheduler(this);
|
||||
Best = Scheduler.scheduleVariant(SISchedulerBlockCreatorVariant::LatenciesAlone,
|
||||
SISchedulerBlockSchedulerVariant::BlockLatencyRegUsage);
|
||||
#if 0 // To enable when handleMove fix lands
|
||||
|
||||
// if VGPR usage is extremely high, try other good performing variants
|
||||
// which could lead to lower VGPR usage
|
||||
if (Best.MaxVGPRUsage > 180) {
|
||||
|
@ -1865,7 +1865,7 @@ void SIScheduleDAGMI::schedule()
|
|||
Best = Temp;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
ScheduledSUnits = Best.SUs;
|
||||
ScheduledSUnitsInv.resize(SUnits.size());
|
||||
|
||||
|
|
Loading…
Reference in New Issue