Skip to content

Commit

Permalink
[SLP] Sink debug after checking for matching types/opcode.
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D24090

llvm-svn: 280260
  • Loading branch information
Chad Rosier committed Aug 31, 2016
1 parent 8baccc2 commit 54807a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Expand Up @@ -3855,8 +3855,6 @@ bool SLPVectorizerPass::tryToVectorizeList(ArrayRef<Value *> VL, BoUpSLP &R,
if (VL.size() < 2)
return false;

DEBUG(dbgs() << "SLP: Vectorizing a list of length = " << VL.size() << ".\n");

// Check that all of the parts are scalar instructions of the same type.
Instruction *I0 = dyn_cast<Instruction>(VL[0]);
if (!I0)
Expand All @@ -3878,6 +3876,8 @@ bool SLPVectorizerPass::tryToVectorizeList(ArrayRef<Value *> VL, BoUpSLP &R,
return false;
}

DEBUG(dbgs() << "SLP: Vectorizing a list of length = " << VL.size() << ".\n");

bool Changed = false;

// Keep track of values that were deleted by vectorizing in the loop below.
Expand Down

0 comments on commit 54807a9

Please sign in to comment.