[llvm] [Attributor] Change allocation size and load/store offsets using AAPointerInfo for Alloca instructions (PR #72029)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 26 09:27:42 PDT 2025
================
@@ -6181,11 +6278,53 @@ struct AAPointerInfo : public AbstractAttribute {
}
}
+ // Merge two access paths into one.
+ void mergeAccessPaths(const AccessPathSetTy *AccessPathsNew) const {
+ for (auto *Path : *AccessPathsNew)
----------------
shiltian wrote:
It looks like all the uses of `AccessPaths` assumes `AccessPaths` is never `nullptr`. If it is the case, use a `&` instead, or at least assert non-`nullptr`?
https://github.com/llvm/llvm-project/pull/72029
More information about the llvm-commits
mailing list