summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-01-31 10:05:13 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-01-31 10:05:13 +0000
commitf4f1d447790e2942aaa97c5212525c2c6cbd5df6 (patch)
tree0314fb9253bbdb904dcf114f457238aa256486a0 /llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
parent1c6c16ea11b8c589be0bf3b598bd7a6b30d71968 (diff)
downloadbcm5719-llvm-f4f1d447790e2942aaa97c5212525c2c6cbd5df6.tar.gz
bcm5719-llvm-f4f1d447790e2942aaa97c5212525c2c6cbd5df6.zip
Add a comment for a nasty short term hack.
llvm-svn: 46610
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
index ac35b40d921..3873c33a20f 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
@@ -741,6 +741,10 @@ void ScheduleDAG::EmitNode(SDNode *Node, unsigned InstanceNo,
unsigned NumLabels = 0;
MachineBasicBlock::iterator MBBI = BB->begin();
while (MBBI != BB->end()) {
+ // FIXME: This is a nasty short term workaround. For now, we are
+ // assuming there are two debug labels at the beginning of the
+ // entry block: one for dbg_func_start, one for the first
+ // dbg_stoppoint before actual code.
if (!MBBI->isDebugLabel() || ++NumLabels > 1)
break;
++MBBI;
OpenPOWER on IntegriCloud