[PM] Add a unittest for invalidating module analyses with an SCC pass.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 26 Sep 2016 04:01:55 +0000 (04:01 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 26 Sep 2016 04:01:55 +0000 (04:01 +0000)
commitb52b573deb40adeb4b85d4cbe918efb82fed3661
treefd83426fde761cf35b24d41a21ae121bf0c270ed
parent5cb11b642328cf17d8386d147adb7466b4263ab8
[PM] Add a unittest for invalidating module analyses with an SCC pass.

This reinstates r280447. Original commit log:
This wasn't really well explicitly tested with a nice unittest before.
It seems good to have reasonably broken out unittests for this kind of
functionality as I'm workin go other invalidation features to make sure
none of the existing ones regress.

This still has too much duplicated code, I plan to factor that out in
a subsequent commit to use common helpers for repeated parts of this.

llvm-svn: 282377
llvm/unittests/Analysis/CGSCCPassManagerTest.cpp