summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
diff options
context:
space:
mode:
authorMichael Zolotukhin <mzolotukhin@apple.com>2015-01-09 20:36:19 +0000
committerMichael Zolotukhin <mzolotukhin@apple.com>2015-01-09 20:36:19 +0000
commit1c38bc12de14235e2b196fc0d08171af3738531a (patch)
tree891fc166e8014b0640794da7b26821d9d1ca9adb /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
parente21582e742d6536abfd85a842e38f4822e3a4f75 (diff)
downloadbcm5719-llvm-1c38bc12de14235e2b196fc0d08171af3738531a.tar.gz
bcm5719-llvm-1c38bc12de14235e2b196fc0d08171af3738531a.zip
Remove duplicating code. NFC.
The removed condition is checked in the previous loop. llvm-svn: 225542
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
-rw-r--r--llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index c8b8ff22de0..db42251fac2 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -1034,8 +1034,8 @@ void BoUpSLP::buildTree_rec(ArrayRef<Value *> VL, unsigned Depth) {
// If any of the scalars appears in the table OR it is marked as a value that
// needs to stat scalar then we need to gather the scalars.
for (unsigned i = 0, e = VL.size(); i != e; ++i) {
- if (ScalarToTreeEntry.count(VL[i]) || MustGather.count(VL[i])) {
- DEBUG(dbgs() << "SLP: Gathering due to gathered scalar. \n");
+ if (MustGather.count(VL[i])) {
+ DEBUG(dbgs() << "SLP: Gathering due to gathered scalar.\n");
newTreeEntry(VL, false);
return;
}
OpenPOWER on IntegriCloud