From b8cef239e543306754dee6ef2eb427bca4ba978c Mon Sep 17 00:00:00 2001 From: Victor Hernandez Date: Thu, 21 Jan 2010 23:09:12 +0000 Subject: No need to look through bitcasts for DbgInfoIntrinsic git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94114 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/BasicBlockUtils.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/Transforms/Utils') diff --git a/lib/Transforms/Utils/BasicBlockUtils.cpp b/lib/Transforms/Utils/BasicBlockUtils.cpp index e902688..7bc4fcd 100644 --- a/lib/Transforms/Utils/BasicBlockUtils.cpp +++ b/lib/Transforms/Utils/BasicBlockUtils.cpp @@ -615,11 +615,6 @@ Value *llvm::FindAvailableLoadedValue(Value *Ptr, BasicBlock *ScanBB, Instruction *Inst = --ScanFrom; if (isa(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(Inst) && isa(Inst->getType())) - continue; // Restore ScanFrom to expected value in case next test succeeds ScanFrom++; -- cgit v1.1