[PATCH] D36216: [PM] Fix proxy invalidation
Philip Pfaffe via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 2 06:10:09 PDT 2017
philip.pfaffe added a comment.
The Invalidator passed through the invalidate() path can be used to transitively invalidate analyses. It frequently happens that analysis results depend on other analyses, and thus store references to their results. When the dependee now gets invalidated, the depender needs to be invalidated as well. This is the purpose of the Invalidator object, which can be used to check whether some dependee analysis is in the process of being invalidated. I originally was checking the wrong dependee analyses, which is an actual error, you can only check analysis results that are in the cache (which they are if you've captured their reference). The invalidation I'm handling inside the proxy deals with the standard analyses the proxy passes into the Scop pipeline, since I'm capturing their reference.
This checking allows us to actually preserve a couple of results outside of the proxy, since the Scop pipeline shouldn't break those, or otherwise should update them accordingly (though this requires some further discussion).
https://reviews.llvm.org/D36216
More information about the llvm-commits
mailing list