[llvm] r174977 - Equal treatment of labels and other terminators in MI DAG construction.

Sergei Larin slarin at codeaurora.org
Tue Feb 12 08:36:03 PST 2013


Author: slarin
Date: Tue Feb 12 10:36:03 2013
New Revision: 174977

URL: http://llvm.org/viewvc/llvm-project?rev=174977&view=rev
Log:

Equal treatment of labels and other terminators in MI DAG construction.

MI sched DAG construction allows targets to include terminators into scheduling DAG.
Extend this functionality to labels as well.


Modified:
    llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp

Modified: llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp?rev=174977&r1=174976&r2=174977&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp (original)
+++ llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp Tue Feb 12 10:36:03 2013
@@ -746,7 +746,7 @@ void ScheduleDAGInstrs::buildSchedGraph(
       assert(RPTracker->getPos() == prior(MII) && "RPTracker can't find MI");
     }
 
-    assert((!MI->isTerminator() || CanHandleTerminators) && !MI->isLabel() &&
+    assert((CanHandleTerminators || (!MI->isTerminator() && !MI->isLabel())) &&
            "Cannot schedule terminators or labels!");
 
     SUnit *SU = MISUnitMap[MI];





More information about the llvm-commits mailing list