[llvm-commits] [llvm] r66935 - /llvm/branches/Apple/Dib/lib/Transforms/Scalar/InstructionCombining.cpp

Bill Wendling isanbard at gmail.com
Fri Mar 13 13:27:08 PDT 2009


Author: void
Date: Fri Mar 13 15:27:07 2009
New Revision: 66935

URL: http://llvm.org/viewvc/llvm-project?rev=66935&view=rev
Log:
--- Merging (from foreign repository) r66930 into '.':
U    lib/Transforms/Scalar/InstructionCombining.cpp

One more place where debug info affects codegen.

Modified:
    llvm/branches/Apple/Dib/lib/Transforms/Scalar/InstructionCombining.cpp

Modified: llvm/branches/Apple/Dib/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/lib/Transforms/Scalar/InstructionCombining.cpp?rev=66935&r1=66934&r2=66935&view=diff

==============================================================================
--- llvm/branches/Apple/Dib/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/branches/Apple/Dib/lib/Transforms/Scalar/InstructionCombining.cpp Fri Mar 13 15:27:07 2009
@@ -11120,7 +11120,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