1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

MachineScheduler: Slightly simplify release node

llvm-svn: 282201
This commit is contained in:
Matthias Braun 2016-09-22 21:39:56 +00:00
parent b1e06b237f
commit 650e8168dc
2 changed files with 11 additions and 21 deletions

View File

@ -718,10 +718,6 @@ public:
void releaseNode(SUnit *SU, unsigned ReadyCycle);
void releaseTopNode(SUnit *SU);
void releaseBottomNode(SUnit *SU);
void bumpCycle(unsigned NextCycle);
void incExecutedResources(unsigned PIdx, unsigned Count);
@ -892,12 +888,18 @@ public:
void schedNode(SUnit *SU, bool IsTopNode) override;
void releaseTopNode(SUnit *SU) override {
Top.releaseTopNode(SU);
if (SU->isScheduled)
return;
Top.releaseNode(SU, SU->TopReadyCycle);
TopCand.SU = nullptr;
}
void releaseBottomNode(SUnit *SU) override {
Bot.releaseBottomNode(SU);
if (SU->isScheduled)
return;
Bot.releaseNode(SU, SU->BotReadyCycle);
BotCand.SU = nullptr;
}
@ -975,7 +977,9 @@ public:
void schedNode(SUnit *SU, bool IsTopNode) override;
void releaseTopNode(SUnit *SU) override {
Top.releaseTopNode(SU);
if (SU->isScheduled)
return;
Top.releaseNode(SU, SU->TopReadyCycle);
}
// Only called for roots.

View File

@ -1995,20 +1995,6 @@ void SchedBoundary::releaseNode(SUnit *SU, unsigned ReadyCycle) {
Available.push(SU);
}
void SchedBoundary::releaseTopNode(SUnit *SU) {
if (SU->isScheduled)
return;
releaseNode(SU, SU->TopReadyCycle);
}
void SchedBoundary::releaseBottomNode(SUnit *SU) {
if (SU->isScheduled)
return;
releaseNode(SU, SU->BotReadyCycle);
}
/// Move the boundary of scheduled code by one cycle.
void SchedBoundary::bumpCycle(unsigned NextCycle) {
if (SchedModel->getMicroOpBufferSize() == 0) {