summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergei Larin <slarin@codeaurora.org>2013-02-12 16:36:03 +0000
committerSergei Larin <slarin@codeaurora.org>2013-02-12 16:36:03 +0000
commit5e76aa971418b5aa6736ebcdf1644c74687f126b (patch)
treeb5fb33a0993d68e38349f8d639792e965af68011
parent97438dc75eea431270e1a7857d4342c2b0ffbbee (diff)
downloadbcm5719-llvm-5e76aa971418b5aa6736ebcdf1644c74687f126b.tar.gz
bcm5719-llvm-5e76aa971418b5aa6736ebcdf1644c74687f126b.zip
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. llvm-svn: 174977
-rw-r--r--llvm/lib/CodeGen/ScheduleDAGInstrs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
index 59e1ca17f67..71e7a21ef2b 100644
--- a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
+++ b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
@@ -746,7 +746,7 @@ void ScheduleDAGInstrs::buildSchedGraph(AliasAnalysis *AA,
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];
OpenPOWER on IntegriCloud