diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-06-29 16:55:24 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-06-29 16:55:24 +0000 |
commit | 5bee07ec6829f8945f14057a657d692faa0b0ef0 (patch) | |
tree | 97c4c87926f34df308e14ec2489f12239c0b6217 /llvm/lib | |
parent | 8452ef07981e07aea0539ebf5ee92b72387072ae (diff) | |
download | bcm5719-llvm-5bee07ec6829f8945f14057a657d692faa0b0ef0.tar.gz bcm5719-llvm-5bee07ec6829f8945f14057a657d692faa0b0ef0.zip |
skip dbg_value instructions
llvm-svn: 107154
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp b/llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp index 2f635fe50ad..6c77d856538 100644 --- a/llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp +++ b/llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp @@ -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); |