diff options
author | Michael Zolotukhin <mzolotukhin@apple.com> | 2015-01-09 20:36:19 +0000 |
---|---|---|
committer | Michael Zolotukhin <mzolotukhin@apple.com> | 2015-01-09 20:36:19 +0000 |
commit | 1c38bc12de14235e2b196fc0d08171af3738531a (patch) | |
tree | 891fc166e8014b0640794da7b26821d9d1ca9adb /llvm/lib/Transforms/Vectorize | |
parent | e21582e742d6536abfd85a842e38f4822e3a4f75 (diff) | |
download | bcm5719-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')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 4 |
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; } |