summaryrefslogtreecommitdiff
path: root/lib/CodeGen/ScheduleDAGInstrs.cpp
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
commit91231a6dc7c10e05934f2cf141a2d66b604a528f (patch)
tree8ef0aeb581532d5fa9f169c5e4ffebb5384e8dd7 /lib/CodeGen/ScheduleDAGInstrs.cpp
parente38825f490b898644089d5cd9cb90cec681bded8 (diff)
downloadllvm-91231a6dc7c10e05934f2cf141a2d66b604a528f.tar.gz
llvm-91231a6dc7c10e05934f2cf141a2d66b604a528f.tar.bz2
llvm-91231a6dc7c10e05934f2cf141a2d66b604a528f.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ScheduleDAGInstrs.cpp')
-rw-r--r--lib/CodeGen/ScheduleDAGInstrs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/ScheduleDAGInstrs.cpp b/lib/CodeGen/ScheduleDAGInstrs.cpp
index 59e1ca17f6..71e7a21ef2 100644
--- a/lib/CodeGen/ScheduleDAGInstrs.cpp
+++ b/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];