[LV] The actual change I intended to commit in r204148. Sorry for the
[oota-llvm.git] / lib / Transforms / Vectorize / LoopVectorize.cpp
index dd8d5fce8d4e8c5da3d744bd99df0361753b62fb..1f02bf6cbe99b79f049a4da5663b935f9bc1320c 100644 (file)
@@ -1064,14 +1064,7 @@ struct LoopVectorize : public FunctionPass {
   }
 
   bool processLoop(Loop *L) {
-    // We only handle inner loops, so if there are children just recurse.
-    if (!L->empty()) {
-      bool Changed = false;
-      for (Loop *InnerL : *L)
-        Changed |= processLoop(InnerL);
-      return Changed;
-    }
-
+    assert(L->empty() && "Only process inner loops.");
     DEBUG(dbgs() << "LV: Checking a loop in \"" <<
           L->getHeader()->getParent()->getName() << "\"\n");