summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2016-08-31 17:41:12 +0000
committerChad Rosier <mcrosier@codeaurora.org>2016-08-31 17:41:12 +0000
commit0de580aaabbdb1a8eb7a0464f08a28b40282d50d (patch)
treee6539a713824b57d82a5b5f4762f58ba8be23bcf /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
parent4bda57622b7f708be49bc80906fff89bf68c45a1 (diff)
downloadbcm5719-llvm-0de580aaabbdb1a8eb7a0464f08a28b40282d50d.tar.gz
bcm5719-llvm-0de580aaabbdb1a8eb7a0464f08a28b40282d50d.zip
[SLP] Update the debug based on Michael's suggestion.
Passing the types/opcode check still doesn't guarantee we'll actually vectorize. Therefore, just make it clear we're attempting to vectorize. llvm-svn: 280263
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
-rw-r--r--llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index fb435fbbb6f..34811db9b33 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -3855,6 +3855,9 @@ bool SLPVectorizerPass::tryToVectorizeList(ArrayRef<Value *> VL, BoUpSLP &R,
if (VL.size() < 2)
return false;
+ DEBUG(dbgs() << "SLP: Trying to vectorize 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)
@@ -3876,8 +3879,6 @@ 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.
OpenPOWER on IntegriCloud