From 1c38bc12de14235e2b196fc0d08171af3738531a Mon Sep 17 00:00:00 2001 From: Michael Zolotukhin Date: Fri, 9 Jan 2015 20:36:19 +0000 Subject: Remove duplicating code. NFC. The removed condition is checked in the previous loop. llvm-svn: 225542 --- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp') 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 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; } -- cgit v1.2.3