skip dbg_value instructions

llvm-svn: 107154
This commit is contained in:
Jim Grosbach 2010-06-29 16:55:24 +00:00
parent 8452ef0798
commit 5bee07ec68
1 changed files with 2 additions and 0 deletions

View File

@ -410,6 +410,8 @@ Thumb1RegisterInfo::saveScavengerRegister(MachineBasicBlock &MBB,
// before that instead and adjust the UseMI.
bool done = false;
for (MachineBasicBlock::iterator II = I; !done && II != UseMI ; ++II) {
if (II->isDebugValue())
continue;
// If this instruction affects R12, adjust our restore point.
for (unsigned i = 0, e = II->getNumOperands(); i != e; ++i) {
const MachineOperand &MO = II->getOperand(i);