mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-12 02:47:10 +00:00
Increment counter inside insertDebugValue().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136915 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1f35b17885
commit
d9f3fc7faa
@ -896,6 +896,7 @@ void UserValue::insertDebugValue(MachineBasicBlock *MBB, SlotIndex Idx,
|
|||||||
const TargetInstrInfo &TII) {
|
const TargetInstrInfo &TII) {
|
||||||
MachineBasicBlock::iterator I = findInsertLocation(MBB, Idx, LIS);
|
MachineBasicBlock::iterator I = findInsertLocation(MBB, Idx, LIS);
|
||||||
MachineOperand &Loc = locations[LocNo];
|
MachineOperand &Loc = locations[LocNo];
|
||||||
|
++NumInsertedDebugValues;
|
||||||
|
|
||||||
// Frame index locations may require a target callback.
|
// Frame index locations may require a target callback.
|
||||||
if (Loc.isFI()) {
|
if (Loc.isFI()) {
|
||||||
@ -926,7 +927,6 @@ void UserValue::emitDebugValues(VirtRegMap *VRM, LiveIntervals &LIS,
|
|||||||
|
|
||||||
DEBUG(dbgs() << " BB#" << MBB->getNumber() << '-' << MBBEnd);
|
DEBUG(dbgs() << " BB#" << MBB->getNumber() << '-' << MBBEnd);
|
||||||
insertDebugValue(MBB, Start, LocNo, LIS, TII);
|
insertDebugValue(MBB, Start, LocNo, LIS, TII);
|
||||||
++NumInsertedDebugValues;
|
|
||||||
// This interval may span multiple basic blocks.
|
// This interval may span multiple basic blocks.
|
||||||
// Insert a DBG_VALUE into each one.
|
// Insert a DBG_VALUE into each one.
|
||||||
while(Stop > MBBEnd) {
|
while(Stop > MBBEnd) {
|
||||||
@ -937,7 +937,6 @@ void UserValue::emitDebugValues(VirtRegMap *VRM, LiveIntervals &LIS,
|
|||||||
MBBEnd = LIS.getMBBEndIdx(MBB);
|
MBBEnd = LIS.getMBBEndIdx(MBB);
|
||||||
DEBUG(dbgs() << " BB#" << MBB->getNumber() << '-' << MBBEnd);
|
DEBUG(dbgs() << " BB#" << MBB->getNumber() << '-' << MBBEnd);
|
||||||
insertDebugValue(MBB, Start, LocNo, LIS, TII);
|
insertDebugValue(MBB, Start, LocNo, LIS, TII);
|
||||||
++NumInsertedDebugValues;
|
|
||||||
}
|
}
|
||||||
DEBUG(dbgs() << '\n');
|
DEBUG(dbgs() << '\n');
|
||||||
if (MBB == MFEnd)
|
if (MBB == MFEnd)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user