[llvm-commits] [llvm] r95889 - /llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp

Dale Johannesen dalej at apple.com
Thu Feb 11 10:22:31 PST 2010


Author: johannes
Date: Thu Feb 11 12:22:31 2010
New Revision: 95889

URL: http://llvm.org/viewvc/llvm-project?rev=95889&view=rev
Log:
Don't allow DBG_VALUE to affect codegen.


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

Modified: llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp?rev=95889&r1=95888&r2=95889&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp Thu Feb 11 12:22:31 2010
@@ -213,6 +213,9 @@
   unsigned NumVisited = 0;
   for (MachineBasicBlock::iterator I = llvm::next(OldPos); I != KillPos; ++I) {
     MachineInstr *OtherMI = I;
+    // DBG_VALUE cannot be counted against the limit.
+    if (OtherMI->isDebugValue())
+      continue;
     if (NumVisited > 30)  // FIXME: Arbitrary limit to reduce compile time cost.
       return false;
     ++NumVisited;





More information about the llvm-commits mailing list