From b2e5f58de012198bd9e654e9f99fc19251081b39 Mon Sep 17 00:00:00 2001 From: Michael Zolotukhin Date: Fri, 9 Jan 2015 20:36:19 +0000 Subject: [PATCH] Remove duplicating code. NFC. The removed condition is checked in the previous loop. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225542 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Vectorize/SLPVectorizer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index c8b8ff22de0..db42251fac2 100644 --- a/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/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; }