Remove duplicating code. NFC.
authorMichael Zolotukhin <mzolotukhin@apple.com>
Fri, 9 Jan 2015 20:36:19 +0000 (20:36 +0000)
committerMichael Zolotukhin <mzolotukhin@apple.com>
Fri, 9 Jan 2015 20:36:19 +0000 (20:36 +0000)
The removed condition is checked in the previous loop.

llvm-svn: 225542

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

index c8b8ff2..db42251 100644 (file)
@@ -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;
     }