[llvm-commits] [llvm] r122545 - in /llvm/trunk: include/llvm/CodeGen/ScheduleDAG.h lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
Andrew Trick
atrick at apple.com
Thu Dec 23 23:10:19 PST 2010
Author: atrick
Date: Fri Dec 24 01:10:19 2010
New Revision: 122545
URL: http://llvm.org/viewvc/llvm-project?rev=122545&view=rev
Log:
Minor cleanup related to my latest scheduler changes.
Modified:
llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h
llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
Modified: llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h?rev=122545&r1=122544&r2=122545&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h (original)
+++ llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h Fri Dec 24 01:10:19 2010
@@ -328,7 +328,7 @@
/// 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.
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp?rev=122545&r1=122544&r2=122545&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp Fri Dec 24 01:10:19 2010
@@ -348,7 +348,10 @@
/// 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 @@
RestoreHazardCheckerBottomUp();
- if (EnableSchedCycles)
- ReleasePending();
+ ReleasePending();
++NumBacktracks;
}
More information about the llvm-commits
mailing list