diff options
| author | Weiming Zhao <weimingz@codeaurora.org> | 2016-01-06 18:31:44 +0000 |
|---|---|---|
| committer | Weiming Zhao <weimingz@codeaurora.org> | 2016-01-06 18:31:44 +0000 |
| commit | b243c95c6ab25a84bc01d06f71a8a8b87c6e0b5b (patch) | |
| tree | 7d93eefb9e55c9a7acfdb1c83cecbb4118071ef0 /llvm/lib/Analysis | |
| parent | 8f59cf756f3903586b7ab549b0ab3c377cffe33d (diff) | |
| download | bcm5719-llvm-b243c95c6ab25a84bc01d06f71a8a8b87c6e0b5b.tar.gz bcm5719-llvm-b243c95c6ab25a84bc01d06f71a8a8b87c6e0b5b.zip | |
Revert r256952 due to lit test fails.
llvm-svn: 256954
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/CallGraphSCCPass.cpp | 7 | ||||
| -rw-r--r-- | llvm/lib/Analysis/LoopPass.cpp | 6 |
2 files changed, 4 insertions, 9 deletions
diff --git a/llvm/lib/Analysis/CallGraphSCCPass.cpp b/llvm/lib/Analysis/CallGraphSCCPass.cpp index 6dd1d0a066b..07b389a2a13 100644 --- a/llvm/lib/Analysis/CallGraphSCCPass.cpp +++ b/llvm/lib/Analysis/CallGraphSCCPass.cpp @@ -612,10 +612,9 @@ namespace { bool runOnSCC(CallGraphSCC &SCC) override { Out << Banner; for (CallGraphNode *CGN : SCC) { - if (CGN->getFunction()) { - if (isFunctionInPrintList(CGN->getFunction()->getName())) - CGN->getFunction()->print(Out); - } else + if (CGN->getFunction()) + CGN->getFunction()->print(Out); + else Out << "\nPrinting <null> Function\n"; } return false; diff --git a/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp index e24a9e46fc1..dc424734dd5 100644 --- a/llvm/lib/Analysis/LoopPass.cpp +++ b/llvm/lib/Analysis/LoopPass.cpp @@ -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; } }; |

