[llvm] r176769 - LoopVectorizer: Ignore all dbg intrinisic

Arnold Schwaighofer aschwaighofer at apple.com
Sat Mar 9 08:27:27 PST 2013


Author: arnolds
Date: Sat Mar  9 10:27:27 2013
New Revision: 176769

URL: http://llvm.org/viewvc/llvm-project?rev=176769&view=rev
Log:
LoopVectorizer: Ignore all dbg intrinisic

Ignore all DbgIntriniscInfo instructions instead of just DbgValueInst.

Modified:
    llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp

Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=176769&r1=176768&r2=176769&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Sat Mar  9 10:27:27 2013
@@ -2088,8 +2088,8 @@ InnerLoopVectorizer::vectorizeBlockInLoo
     }
 
     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::canVecto
         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::exp
 
     // 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);





More information about the llvm-commits mailing list