diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2020-09-17 15:41:01 -0700 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2020-09-18 09:50:47 -0700 |
commit | 0345d88de654259ae90494bf9b015416e2cccacb (patch) | |
tree | 672d881bd0c5b8aad604a26fb8933d354d445ea9 /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | cab6f5b2ab814a4be3fd71aacdbe10298f512833 (diff) | |
download | llvm-0345d88de654259ae90494bf9b015416e2cccacb.zip llvm-0345d88de654259ae90494bf9b015416e2cccacb.tar.gz llvm-0345d88de654259ae90494bf9b015416e2cccacb.tar.bz2 |
[NFC][ScheduleDAG] Remove unused EntrySU SUnit
EntrySU doesn't seem to be used at all when building the ScheduleDAG.
Differential Revision: https://reviews.llvm.org/D87867
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineScheduler.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp index b6d0d9a..dbb2f3f 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/lib/CodeGen/MachineScheduler.cpp @@ -680,7 +680,7 @@ void ScheduleDAGMI::releasePred(SUnit *SU, SDep *PredEdge) { PredSU->BotReadyCycle = SU->BotReadyCycle + PredEdge->getLatency(); --PredSU->NumSuccsLeft; - if (PredSU->NumSuccsLeft == 0 && PredSU != &EntrySU) + if (PredSU->NumSuccsLeft == 0) SchedImpl->releaseBottomNode(PredSU); } @@ -853,7 +853,7 @@ void ScheduleDAGMI::initQueues(ArrayRef<SUnit*> TopRoots, NextClusterSucc = nullptr; NextClusterPred = nullptr; - // Release all DAG roots for scheduling, not including EntrySU/ExitSU. + // Release all DAG roots for scheduling, not including ExitSU. // // Nodes with unreleased weak edges can still be roots. // Release top roots in forward order. @@ -867,7 +867,6 @@ void ScheduleDAGMI::initQueues(ArrayRef<SUnit*> TopRoots, SchedImpl->releaseBottomNode(*I); } - releaseSuccessors(&EntrySU); releasePredecessors(&ExitSU); SchedImpl->registerRoots(); @@ -1168,8 +1167,6 @@ void ScheduleDAGMILive::updatePressureDiffs( void ScheduleDAGMILive::dump() const { #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) - if (EntrySU.getInstr() != nullptr) - dumpNodeAll(EntrySU); for (const SUnit &SU : SUnits) { dumpNodeAll(SU); if (ShouldTrackPressure) { |