summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold Schwaighofer <aschwaighofer@apple.com>2013-03-09 16:27:27 +0000
committerArnold Schwaighofer <aschwaighofer@apple.com>2013-03-09 16:27:27 +0000
commit8b3dc0940028431e2b8d1dfaa5636e84c07ce060 (patch)
treee279b1bf66968a2f88e9d678cbefb75be93c8ef7
parent4090b61ac3a0d000e0c0c748ff3048d8fefe2e0d (diff)
downloadbcm5719-llvm-8b3dc0940028431e2b8d1dfaa5636e84c07ce060.tar.gz
bcm5719-llvm-8b3dc0940028431e2b8d1dfaa5636e84c07ce060.zip
LoopVectorizer: Ignore all dbg intrinisic
Ignore all DbgIntriniscInfo instructions instead of just DbgValueInst. llvm-svn: 176769
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index e1f29322318..3da0f5d2104 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -2088,8 +2088,8 @@ InnerLoopVectorizer::vectorizeBlockInLoop(LoopVectorizationLegality *Legal,
}
case Instruction::Call: {
- // Ignore dbg.value instructions.
- if (isa<DbgValueInst>(it))
+ // Ignore dbg intrinsics.
+ if (isa<DbgInfoIntrinsic>(it))
break;
Module *M = BB->getParent()->getParent();
@@ -2328,10 +2328,10 @@ bool LoopVectorizationLegality::canVectorizeInstrs() {
return false;
}// end of PHI handling
- // We still don't handle functions. However, we can ignore dbg.value
+ // We still don't handle functions. However, we can ignore dbg intrinsic
// calls and we do handle certain intrinsic and libm functions.
CallInst *CI = dyn_cast<CallInst>(it);
- if (CI && !getIntrinsicIDForCall(CI, TLI) && !isa<DbgValueInst>(CI)) {
+ if (CI && !getIntrinsicIDForCall(CI, TLI) && !isa<DbgInfoIntrinsic>(CI)) {
DEBUG(dbgs() << "LV: Found a call site.\n");
return false;
}
@@ -3268,8 +3268,8 @@ unsigned LoopVectorizationCostModel::expectedCost(unsigned VF) {
// For each instruction in the old loop.
for (BasicBlock::iterator it = BB->begin(), e = BB->end(); it != e; ++it) {
- // Skip dbg.value instructions.
- if (isa<DbgValueInst>(it))
+ // Skip dbg intrinsics.
+ if (isa<DbgInfoIntrinsic>(it))
continue;
unsigned C = getInstructionCost(it, VF);
OpenPOWER on IntegriCloud