[llvm-commits] [llvm] r136901 - /llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp
Devang Patel
dpatel at apple.com
Thu Aug 4 13:42:30 PDT 2011
On Aug 4, 2011, at 1:32 PM, Jakob Stoklund Olesen wrote:
>
> 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?
yes.
-
Devang
More information about the llvm-commits
mailing list