[PATCH] D136512: [AA] Allow for flow-sensitive analyses.
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 8 23:19:45 PST 2022
nikic added inline comments.
================
Comment at: llvm/include/llvm/Analysis/CFLSteensAliasAnalysis.h:80
if (isa<Constant>(LocA.Ptr) && isa<Constant>(LocB.Ptr))
- return AAResultBase::alias(LocA, LocB, AAQI);
+ return AAResultBase::alias(LocA, LocB, AAQI, nullptr);
----------------
Just a note: You pass through CtxI to AAResultBase::alias() in some places, but not in others. Of course, this doesn't make any practical difference, because AAResultBase::alias() is a no-op that ignores all arguments. We should probably still either do one or the other for consistency.
(I'm kind of wondering if we shouldn't drop all these `AAResultBase` calls and just replace them with the appropriate values. I get the impression that these are causing a lot more confusion than they clarify, because people think they perform recursive AA, which they don't.)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136512/new/
https://reviews.llvm.org/D136512
More information about the llvm-commits
mailing list