[llvm-commits] [llvm] r66930 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Dale Johannesen dalej at apple.com
Fri Mar 13 12:23:20 PDT 2009


Author: johannes
Date: Fri Mar 13 14:23:20 2009
New Revision: 66930

URL: http://llvm.org/viewvc/llvm-project?rev=66930&view=rev
Log:
One more place where debug info affects codegen.


Modified:
    llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=66930&r1=66929&r2=66930&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Fri Mar 13 14:23:20 2009
@@ -11144,7 +11144,8 @@
 
     // If we see a free or a call (which might do a free) the pointer could be
     // marked invalid.
-    if (isa<FreeInst>(BBI) || isa<CallInst>(BBI))
+    if (isa<FreeInst>(BBI) || 
+        (isa<CallInst>(BBI) && !isa<DbgInfoIntrinsic>(BBI)))
       return false;
     
     if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) {





More information about the llvm-commits mailing list