[llvm-commits] [llvm] r94114 - /llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp

Victor Hernandez vhernandez at apple.com
Thu Jan 21 15:09:12 PST 2010


Author: hernande
Date: Thu Jan 21 17:09:12 2010
New Revision: 94114

URL: http://llvm.org/viewvc/llvm-project?rev=94114&view=rev
Log:
No need to look through bitcasts for DbgInfoIntrinsic

Modified:
    llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp

Modified: llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp?rev=94114&r1=94113&r2=94114&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp Thu Jan 21 17:09:12 2010
@@ -615,11 +615,6 @@
     Instruction *Inst = --ScanFrom;
     if (isa<DbgInfoIntrinsic>(Inst))
       continue;
-    // We skip pointer-to-pointer bitcasts, which are NOPs.
-    // It is necessary for correctness to skip those that feed into a
-    // llvm.dbg.declare, as these are not present when debugging is off.
-    if (isa<BitCastInst>(Inst) && isa<PointerType>(Inst->getType()))
-      continue;
 
     // Restore ScanFrom to expected value in case next test succeeds
     ScanFrom++;





More information about the llvm-commits mailing list