[llvm-commits] [llvm] r105481 - /llvm/trunk/lib/CodeGen/RegisterScavenging.cpp

Jim Grosbach grosbach at apple.com
Fri Jun 4 13:18:31 PDT 2010


Author: grosbach
Date: Fri Jun  4 15:18:30 2010
New Revision: 105481

URL: http://llvm.org/viewvc/llvm-project?rev=105481&view=rev
Log:
Skip dbg_value instructions when scanning instructions in register scavenging.

Modified:
    llvm/trunk/lib/CodeGen/RegisterScavenging.cpp

Modified: llvm/trunk/lib/CodeGen/RegisterScavenging.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterScavenging.cpp?rev=105481&r1=105480&r2=105481&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterScavenging.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterScavenging.cpp Fri Jun  4 15:18:30 2010
@@ -258,6 +258,10 @@
 
   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.





More information about the llvm-commits mailing list