Add invalidate method to GlobalsAA.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Analysis/GlobalsModRef.cpp | ||
---|---|---|
813 | M can be omitted as well. |
Not a bug fix, but a prerequisite for a change I'm working on for the new pass manager, requiring all passes to have an invalidate method.
I sent it for review to get another pair of eyes on the invalidate implementation in case I missed something.
Ok thanks. Can you add a comment to it explaining the rationale, I see that the existing invalidate methods tend to comment on when/why they are invalidated.
I'm unfortunately not very familiar with this aspect of the pass manager, but the change seems reasonable (I assume we were never invalidating before?).
Add comment explaining invalidate rational.
GlobalsAA is stateless and is preserved, unless it's explicitly invalidated.
This breaks check-clang everywhere, see e.g. http://45.33.8.238/linux/7798/step_7.txt
M can be omitted as well.