Add a comment for a nasty short term hack.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 31 Jan 2008 10:05:13 +0000 (10:05 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 31 Jan 2008 10:05:13 +0000 (10:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46610 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/ScheduleDAG.cpp

index ac35b40d921e6c26db8e666c7f32128a6a0d727f..3873c33a20fae17a0c50453b5867ac7cdd6956da 100644 (file)
@@ -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;