Minor cleanup related to my latest scheduler changes.

llvm-svn: 122545
This commit is contained in:
Andrew Trick 2010-12-24 07:10:19 +00:00
parent c926e98fc7
commit dfa31b1cf9
2 changed files with 6 additions and 4 deletions

View File

@ -328,7 +328,7 @@ namespace llvm {
/// isInstr - Return true if this SUnit refers to a machine instruction as
/// opposed to an SDNode.
bool isInstr() const { return !Node; }
bool isInstr() const { return Instr; }
/// setInstr - Assign the instruction for the SUnit.
/// This may be used during post-regalloc scheduling.

View File

@ -348,7 +348,10 @@ void ScheduleDAGRRList::ReleasePredecessors(SUnit *SU) {
/// Check to see if any of the pending instructions are ready to issue. If
/// so, add them to the available queue.
void ScheduleDAGRRList::ReleasePending() {
assert(!EnableSchedCycles && "requires --enable-sched-cycles" );
if (!EnableSchedCycles) {
assert(PendingQueue.empty() && "pending instrs not allowed in this mode");
return;
}
// If the available queue is empty, it is safe to reset MinAvailableCycle.
if (AvailableQueue->empty())
@ -634,8 +637,7 @@ void ScheduleDAGRRList::BacktrackBottomUp(SUnit *SU, SUnit *BtSU) {
RestoreHazardCheckerBottomUp();
if (EnableSchedCycles)
ReleasePending();
ReleasePending();
++NumBacktracks;
}