diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2016-02-23 10:47:57 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2016-02-23 10:47:57 +0000 |
| commit | c5d211ef2c5e50508da4b6309ff5f354d9e8f1f1 (patch) | |
| tree | 229da1b60ce1bbbb6910c4f9efb5892b869e3fb0 /llvm/lib | |
| parent | 1eeac192269987150492b25b05e657311a73901b (diff) | |
| download | bcm5719-llvm-c5d211ef2c5e50508da4b6309ff5f354d9e8f1f1.tar.gz bcm5719-llvm-c5d211ef2c5e50508da4b6309ff5f354d9e8f1f1.zip | |
[PM] Remove an overly aggressive assert now that I can actually test the
pattern that triggers it. This essentially requires an immutable
function analysis, as that will survive anything we do to invalidate it.
When we have such patterns, the function analysis manager will not get
cleared between runs of the proxy.
If we actually need an assert about how things are queried, we can add
more elaborate machinery for computing it, but so far I'm not aware of
significant value provided.
Thanks to Justin Lebar for noticing this when he made a (seemingly
innocuous) change to FunctionAttrs that is enough to trigger it in one
test there. Now it is covered by a direct test of the pass manager code.
llvm-svn: 261627
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Analysis/CGSCCPassManager.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/CGSCCPassManager.cpp b/llvm/lib/Analysis/CGSCCPassManager.cpp index 9cceed4ba87..efffc8e4eba 100644 --- a/llvm/lib/Analysis/CGSCCPassManager.cpp +++ b/llvm/lib/Analysis/CGSCCPassManager.cpp @@ -50,7 +50,6 @@ char FunctionAnalysisManagerCGSCCProxy::PassID; FunctionAnalysisManagerCGSCCProxy::Result FunctionAnalysisManagerCGSCCProxy::run(LazyCallGraph::SCC &C) { - assert(FAM->empty() && "Function analyses ran prior to the CGSCC proxy!"); return Result(*FAM); } |

