diff options
| author | Jim Grosbach <grosbach@apple.com> | 2010-06-04 20:18:30 +0000 |
|---|---|---|
| committer | Jim Grosbach <grosbach@apple.com> | 2010-06-04 20:18:30 +0000 |
| commit | 92330c000cdc7c328110d6f9de5e4017fefac545 (patch) | |
| tree | 5f721bbff17acb6b31b66954f7a8d4a99ad7cfe8 | |
| parent | 8a22e6e2b94b92794e1923554e61920f0e665d44 (diff) | |
| download | external_llvm-92330c000cdc7c328110d6f9de5e4017fefac545.zip external_llvm-92330c000cdc7c328110d6f9de5e4017fefac545.tar.gz external_llvm-92330c000cdc7c328110d6f9de5e4017fefac545.tar.bz2 | |
Skip dbg_value instructions when scanning instructions in register scavenging.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105481 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | lib/CodeGen/RegisterScavenging.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/RegisterScavenging.cpp b/lib/CodeGen/RegisterScavenging.cpp index 690e59f..b3e7975 100644 --- a/lib/CodeGen/RegisterScavenging.cpp +++ b/lib/CodeGen/RegisterScavenging.cpp @@ -258,6 +258,10 @@ unsigned RegScavenger::findSurvivorReg(MachineBasicBlock::iterator StartMI, bool inVirtLiveRange = false; for (++MI; InstrLimit > 0 && MI != ME; ++MI, --InstrLimit) { + if (MI->isDebugValue()) { + ++InstrLimit; // Don't count debug instructions + continue; + } bool isVirtKillInsn = false; bool isVirtDefInsn = false; // Remove any candidates touched by instruction. |
