This is an archive of the discontinued LLVM Phabricator instance.

[NPM][CGSCC] FunctionAnalysisManagerCGSCCProxy: do not clear immutable function passes
ClosedPublic

Authored by mtrofin on Mar 11 2021, 10:45 AM.

Details

Summary

Check with the analysis result by calling invalidate instead of clear on
the analysis manager.

Diff Detail

Event Timeline

mtrofin created this revision.Mar 11 2021, 10:45 AM
mtrofin requested review of this revision.Mar 11 2021, 10:45 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 11 2021, 10:45 AM

This doesn't break the pipeline tests in llvm/test/Other?
Running check-llvm with expensive checks is probably a good idea to see if there are any weird issues.

Otherwise seems fine to me.

llvm/unittests/Analysis/CGSCCPassManagerTest.cpp
1948

assert this is true at the end?

mtrofin updated this revision to Diff 330057.Mar 11 2021, 12:53 PM
mtrofin marked an inline comment as done.

feedback

This doesn't break the pipeline tests in llvm/test/Other?
Running check-llvm with expensive checks is probably a good idea to see if there are any weird issues.

Done - nothing else broke, indeed.

Otherwise seems fine to me.

aeubanks accepted this revision.Mar 11 2021, 1:23 PM
This revision is now accepted and ready to land.Mar 11 2021, 1:23 PM
asbirlea accepted this revision.Mar 11 2021, 4:52 PM
This revision was landed with ongoing or failed builds.Mar 11 2021, 6:15 PM
This revision was automatically updated to reflect the committed changes.