mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
Added debugging options: -misched-only-func/block
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198124 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9eac3a79d9
commit
d3f8d6e0a0
@ -49,6 +49,11 @@ static cl::opt<bool> ViewMISchedDAGs("view-misched-dags", cl::Hidden,
|
||||
|
||||
static cl::opt<unsigned> MISchedCutoff("misched-cutoff", cl::Hidden,
|
||||
cl::desc("Stop scheduling after N instructions"), cl::init(~0U));
|
||||
|
||||
static cl::opt<std::string> SchedOnlyFunc("misched-only-func", cl::Hidden,
|
||||
cl::desc("Only schedule this function"));
|
||||
static cl::opt<unsigned> SchedOnlyBlock("misched-only-block", cl::Hidden,
|
||||
cl::desc("Only schedule this MBB#"));
|
||||
#else
|
||||
static bool ViewMISchedDAGs = false;
|
||||
#endif // NDEBUG
|
||||
@ -377,6 +382,14 @@ void MachineSchedulerBase::scheduleRegions(ScheduleDAGInstrs &Scheduler) {
|
||||
|
||||
Scheduler.startBlock(MBB);
|
||||
|
||||
#ifndef NDEBUG
|
||||
if (SchedOnlyFunc.getNumOccurrences() && SchedOnlyFunc != MF->getName())
|
||||
continue;
|
||||
if (SchedOnlyBlock.getNumOccurrences()
|
||||
&& (int)SchedOnlyBlock != MBB->getNumber())
|
||||
continue;
|
||||
#endif
|
||||
|
||||
// Break the block into scheduling regions [I, RegionEnd), and schedule each
|
||||
// region as soon as it is discovered. RegionEnd points the scheduling
|
||||
// boundary at the bottom of the region. The DAG does not include RegionEnd,
|
||||
|
Loading…
x
Reference in New Issue
Block a user