aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils
diff options
context:
space:
mode:
authorVictor Hernandez <vhernandez@apple.com>2010-01-21 23:09:12 +0000
committerVictor Hernandez <vhernandez@apple.com>2010-01-21 23:09:12 +0000
commitb8cef239e543306754dee6ef2eb427bca4ba978c (patch)
treee858ed5a41a2fce299eabb254b2c9a6ddb25f0e2 /lib/Transforms/Utils
parent8c91e55b789ff68ab132ac07e4a4c42a959d1ebf (diff)
downloadexternal_llvm-b8cef239e543306754dee6ef2eb427bca4ba978c.zip
external_llvm-b8cef239e543306754dee6ef2eb427bca4ba978c.tar.gz
external_llvm-b8cef239e543306754dee6ef2eb427bca4ba978c.tar.bz2
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
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r--lib/Transforms/Utils/BasicBlockUtils.cpp5
1 files changed, 0 insertions, 5 deletions
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<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++;