[AST] Restrict AliasSetTracker to immutable IR
authorNikita Popov <npopov@redhat.com>
Tue, 15 Nov 2022 10:00:17 +0000 (11:00 +0100)
committerNikita Popov <npopov@redhat.com>
Tue, 15 Nov 2022 15:27:28 +0000 (16:27 +0100)
commitdb5855d0e49c1a220bb7ba1cd61e6101a4a8626f
tree7d70f87b5a33a6f22978b78c28f6761dc50d6cbc
parent139e08efc55b4601ce2c2cf9afbcec714aaa017a
[AST] Restrict AliasSetTracker to immutable IR

This restricts usage of AliasSetTracker to IR that does not change.
We used to use it during LICM where the underlying IR could change,
but remaining uses all use AST as part of a separate analysis phase.

This is split out from D137955, which makes use of the new guarantee
to switch to BatchAA.

Differential Revision: https://reviews.llvm.org/D138014
llvm/include/llvm/Analysis/AliasSetTracker.h
llvm/lib/Analysis/AliasSetTracker.cpp