[llvm-commits] [llvm] r46610 - /llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
Evan Cheng
evan.cheng at apple.com
Thu Jan 31 02:05:14 PST 2008
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;
More information about the llvm-commits
mailing list