mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
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
b8ff30f5af
commit
792d48b8f4
@ -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
Block a user