mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-11 15:08:16 +00:00
more comment updates
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95736 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9653f9ec97
commit
3b1906f48d
@ -338,7 +338,7 @@ public:
|
|||||||
bool isCond);
|
bool isCond);
|
||||||
|
|
||||||
/// findDebugLoc - find the next valid DebugLoc starting at MBBI, skipping
|
/// findDebugLoc - find the next valid DebugLoc starting at MBBI, skipping
|
||||||
/// any DEBUG_VALUE instructions. Return UnknownLoc if there is none.
|
/// any DBG_VALUE instructions. Return UnknownLoc if there is none.
|
||||||
DebugLoc findDebugLoc(MachineBasicBlock::iterator &MBBI);
|
DebugLoc findDebugLoc(MachineBasicBlock::iterator &MBBI);
|
||||||
|
|
||||||
// Debugging methods.
|
// Debugging methods.
|
||||||
|
@ -112,7 +112,7 @@ bool DeadMachineInstructionElim::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
MachineInstr *MI = &*MII;
|
MachineInstr *MI = &*MII;
|
||||||
|
|
||||||
if (MI->isDebugValue()) {
|
if (MI->isDebugValue()) {
|
||||||
// Don't delete the DEBUG_VALUE itself, but if its Value operand is
|
// Don't delete the DBG_VALUE itself, but if its Value operand is
|
||||||
// a vreg and this is the only use, substitute an undef operand;
|
// a vreg and this is the only use, substitute an undef operand;
|
||||||
// the former operand will then be deleted normally.
|
// the former operand will then be deleted normally.
|
||||||
if (MI->getNumOperands()==3 && MI->getOperand(0).isReg()) {
|
if (MI->getNumOperands()==3 && MI->getOperand(0).isReg()) {
|
||||||
@ -120,7 +120,7 @@ bool DeadMachineInstructionElim::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
MachineRegisterInfo::use_iterator I = MRI->use_begin(Reg);
|
MachineRegisterInfo::use_iterator I = MRI->use_begin(Reg);
|
||||||
assert(I != MRI->use_end());
|
assert(I != MRI->use_end());
|
||||||
if (++I == MRI->use_end())
|
if (++I == MRI->use_end())
|
||||||
// only one use, which must be this DEBUG_VALUE.
|
// only one use, which must be this DBG_VALUE.
|
||||||
MI->getOperand(0).setReg(0U);
|
MI->getOperand(0).setReg(0U);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user