[PM] Don't walk the AM's ResultsList if nothing was invalidated.
authorJustin Lebar <jlebar@google.com>
Sat, 3 Dec 2016 19:49:23 +0000 (19:49 +0000)
committerJustin Lebar <jlebar@google.com>
Sat, 3 Dec 2016 19:49:23 +0000 (19:49 +0000)
commit64631f5d3bb5141f1c5c3b43a3e0d46e9fa5c33c
treea18664c1a07620e52d3394f1771a17adf8c421d3
parent9b085dd723f951d26949f3c71b50e67c58445f40
[PM] Don't walk the AM's ResultsList if nothing was invalidated.

Summary:
Previously in AnalysisManager::invalidate(), we would walk the full
ResultsList even if we knew that nothing was invalidated.

Reviewers: chandlerc

Subscribers: silvas, llvm-commits, mehdi_amini

Differential Revision: https://reviews.llvm.org/D27371

llvm-svn: 288595
llvm/include/llvm/IR/PassManager.h