[llvm] r278080 - Consistently use CGSCCAnalysisManager
Sean Silva via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 8 17:28:57 PDT 2016
Author: silvas
Date: Mon Aug 8 19:28:56 2016
New Revision: 278080
URL: http://llvm.org/viewvc/llvm-project?rev=278080&view=rev
Log:
Consistently use CGSCCAnalysisManager
Besides a general consistently benefit, the extra layer of indirection
allows the mechanical part of https://reviews.llvm.org/D23256 that
requires touching every transformation and analysis to be factored out
cleanly.
Thanks to David for the suggestion.
Modified:
llvm/trunk/lib/Passes/PassBuilder.cpp
Modified: llvm/trunk/lib/Passes/PassBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Passes/PassBuilder.cpp?rev=278080&r1=278079&r2=278080&view=diff
==============================================================================
--- llvm/trunk/lib/Passes/PassBuilder.cpp (original)
+++ llvm/trunk/lib/Passes/PassBuilder.cpp Mon Aug 8 19:28:56 2016
@@ -155,7 +155,7 @@ public:
/// \brief No-op CGSCC pass which does nothing.
struct NoOpCGSCCPass {
PreservedAnalyses run(LazyCallGraph::SCC &C,
- AnalysisManager<LazyCallGraph::SCC> &) {
+ CGSCCAnalysisManager &) {
return PreservedAnalyses::all();
}
static StringRef name() { return "NoOpCGSCCPass"; }
@@ -168,7 +168,7 @@ class NoOpCGSCCAnalysis : public Analysi
public:
struct Result {};
- Result run(LazyCallGraph::SCC &, AnalysisManager<LazyCallGraph::SCC> &) {
+ Result run(LazyCallGraph::SCC &, CGSCCAnalysisManager &) {
return Result();
}
static StringRef name() { return "NoOpCGSCCAnalysis"; }
More information about the llvm-commits
mailing list