OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a6e97a
)
Scheduler assumes SDDbgValue nodes are in source order. That's true currently. But...
author
Evan Cheng
<evan.cheng@apple.com>
Thu, 25 Mar 2010 07:16:57 +0000
(07:16 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Thu, 25 Mar 2010 07:16:57 +0000
(07:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99501
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
index
07dcc0e
..
e7ab2f0
100644
(file)
--- a/
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
+++ b/
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
@@
-528,8
+528,16
@@
EmitSchedule(DenseMap<MachineBasicBlock*, MachineBasicBlock*> *EM) {
if (!MI)
continue;
MachineBasicBlock *MIBB = MI->getParent();
+#ifndef NDEBUG
+ unsigned LastDIOrder = 0;
+#endif
for (; DI != DE &&
(*DI)->getOrder() >= LastOrder && (*DI)->getOrder() < Order; ++DI) {
+#ifndef NDEBUG
+ assert((*DI)->getOrder() >= LastDIOrder &&
+ "SDDbgValue nodes must be in source order!");
+ LastDIOrder = (*DI)->getOrder();
+#endif
if ((*DI)->isInvalidated())
continue;
MachineInstr *DbgMI = Emitter.EmitDbgValue(*DI, MIBB, VRBaseMap, EM);