See patch for a description of the algorithm.
When the VGPR or SGPR usage reaches a threshold (200 and 70),
the policy is triggered.
I'm open to suggestions for other ways of setting these thresholds.
Paths
| Differential D30147
AMDGPU/SI: Add new SISched policy to reduce register usage Needs ReviewPublic Authored by axeldavy on Feb 18 2017, 1:24 PM.
Details
Diff Detail
Event TimelineHerald added subscribers: tpr, tony-tye, yaxunl and 4 others. · View Herald TranscriptFeb 18 2017, 1:24 PM
Comment Actions Sorry but I give up reviewing this. Your code looks like after "inline all" pass. Can you refactor common parts into functions with meaningfull names?
Comment Actions To ease rebasing, I'll move this patch to after the patch adding support for subreg lane tracking.
Revision Contents
Diff 93185 lib/Target/AMDGPU/SIMachineScheduler.h
lib/Target/AMDGPU/SIMachineScheduler.cpp
|
.count()