[PATCH] D71307: [Loads] Handle simple cases with same base pointer with constant offsets in FindAvailableLoadedValue when AA is null.
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 13:17:18 PST 2020
xbolva00 added a comment.
In D71307#1827040 <https://reviews.llvm.org/D71307#1827040>, @lebedev.ri wrote:
> (just passing-by remark)
>
> In D71307#1792951 <https://reviews.llvm.org/D71307#1792951>, @yamauchi wrote:
>
> > I believe if I request AA in Inliner.cpp and pass it down to FindAvailableLoadedValue through tryPromoteCall (D71308 <https://reviews.llvm.org/D71308>), it would work without this patch.
> >
> > Is it okay to assume that a) the AA is BasicAA and b) BasicAA is stateless since the AA interface is more generic? Is there a way to condition this logic on those conditions?
>
>
> Perhaps it may be more productive to explain why this `This is a simple form of alias analysis.` *has* to exist?
> Why can't, as suggested, BasicAA be used? What goes wrong if BasicAA is used?
I agree, it is quite bad to reinvent simple alias analysis here. If this is really a way to go, maybe move this code to own function?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71307/new/
https://reviews.llvm.org/D71307
More information about the llvm-commits
mailing list