Revert r256952 due to lit test fails.
[oota-llvm.git] / lib / Analysis / LoopPass.cpp
index e24a9e46fc1577a3a6104ff2818dbcc226937c4c..dc424734dd5661dcc8f1fccd3c88afb7017198a8 100644 (file)
@@ -42,11 +42,7 @@ public:
   }
 
   bool runOnLoop(Loop *L, LPPassManager &) override {
-    auto BBI = find_if(L->blocks().begin(), L->blocks().end(),
-                       [](BasicBlock *BB) { return BB; });
-    if (BBI != L->blocks().end() &&
-        isFunctionInPrintList((*BBI)->getParent()->getName()))
-      P.run(*L);
+    P.run(*L);
     return false;
   }
 };