Author: evancheng
Date: Thu Jan 31 04:05:13 2008
New Revision: 46610

URL: http://llvm.org/viewvc/llvm-project?rev=46610&view=rev
Log:
Add a comment for a nasty short term hack.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
URL: 
http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp?rev=46610&r1=46609&r2=46610&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp Thu Jan 31 04:05:13 2008
@@ -741,6 +741,10 @@
       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;


_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to