diff options
author | Victor Hernandez <vhernandez@apple.com> | 2010-01-21 23:09:12 +0000 |
---|---|---|
committer | Victor Hernandez <vhernandez@apple.com> | 2010-01-21 23:09:12 +0000 |
commit | 7b151e9f06b10073aa71a2409bb56c4ab06a45ef (patch) | |
tree | 50694ba57f2921f970a75923873ee7b0836d61a7 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
parent | ae4d949721e47fe7b47beea1a45cb3073eae6821 (diff) | |
download | bcm5719-llvm-7b151e9f06b10073aa71a2409bb56c4ab06a45ef.tar.gz bcm5719-llvm-7b151e9f06b10073aa71a2409bb56c4ab06a45ef.zip |
No need to look through bitcasts for DbgInfoIntrinsic
llvm-svn: 94114
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp index e902688f206..7bc4fcdf368 100644 --- a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp +++ b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp @@ -615,11 +615,6 @@ Value *llvm::FindAvailableLoadedValue(Value *Ptr, BasicBlock *ScanBB, 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++; |