[llvm-commits] [llvm] r136901 - /llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Thu Aug 4 13:32:19 PDT 2011
On Aug 4, 2011, at 11:45 AM, Devang Patel wrote:
> Author: dpatel
> Date: Thu Aug 4 13:45:38 2011
> New Revision: 136901
>
> URL: http://llvm.org/viewvc/llvm-project?rev=136901&view=rev
> Log:
> Add counter.
>
> @@ -924,7 +926,7 @@
>
> DEBUG(dbgs() << " BB#" << MBB->getNumber() << '-' << MBBEnd);
> insertDebugValue(MBB, Start, LocNo, LIS, TII);
> -
> + ++NumInsertedDebugValues;
> // This interval may span multiple basic blocks.
> // Insert a DBG_VALUE into each one.
> while(Stop > MBBEnd) {
> @@ -935,6 +937,7 @@
> MBBEnd = LIS.getMBBEndIdx(MBB);
> DEBUG(dbgs() << " BB#" << MBB->getNumber() << '-' << MBBEnd);
> insertDebugValue(MBB, Start, LocNo, LIS, TII);
> + ++NumInsertedDebugValues;
> }
> DEBUG(dbgs() << '\n');
> if (MBB == MFEnd)
Should this counter perhaps be incremented inside the insertDebugValue function instead?
/jakob
More information about the llvm-commits
mailing list