mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-21 02:29:22 +00:00
LoopVectorizer: Ignore all dbg intrinisic
Ignore all DbgIntriniscInfo instructions instead of just DbgValueInst. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176769 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
56ee544a3a
commit
738295e457
@ -2088,8 +2088,8 @@ InnerLoopVectorizer::vectorizeBlockInLoop(LoopVectorizationLegality *Legal,
|
|||||||
}
|
}
|
||||||
|
|
||||||
case Instruction::Call: {
|
case Instruction::Call: {
|
||||||
// Ignore dbg.value instructions.
|
// Ignore dbg intrinsics.
|
||||||
if (isa<DbgValueInst>(it))
|
if (isa<DbgInfoIntrinsic>(it))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
Module *M = BB->getParent()->getParent();
|
Module *M = BB->getParent()->getParent();
|
||||||
@ -2328,10 +2328,10 @@ bool LoopVectorizationLegality::canVectorizeInstrs() {
|
|||||||
return false;
|
return false;
|
||||||
}// end of PHI handling
|
}// 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.
|
// calls and we do handle certain intrinsic and libm functions.
|
||||||
CallInst *CI = dyn_cast<CallInst>(it);
|
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");
|
DEBUG(dbgs() << "LV: Found a call site.\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -3268,8 +3268,8 @@ unsigned LoopVectorizationCostModel::expectedCost(unsigned VF) {
|
|||||||
|
|
||||||
// For each instruction in the old loop.
|
// For each instruction in the old loop.
|
||||||
for (BasicBlock::iterator it = BB->begin(), e = BB->end(); it != e; ++it) {
|
for (BasicBlock::iterator it = BB->begin(), e = BB->end(); it != e; ++it) {
|
||||||
// Skip dbg.value instructions.
|
// Skip dbg intrinsics.
|
||||||
if (isa<DbgValueInst>(it))
|
if (isa<DbgInfoIntrinsic>(it))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
unsigned C = getInstructionCost(it, VF);
|
unsigned C = getInstructionCost(it, VF);
|
||||||
|
Loading…
Reference in New Issue
Block a user