[PATCH] D45510: [RFC][AliasAnalysis][BasicAA] Return MayAlias for the pointer plus variable offset to structure object member
Shiva Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 11 19:20:56 PDT 2018
shiva0217 added inline comments.
================
Comment at: lib/Analysis/BasicAliasAnalysis.cpp:1164
+ // We can't get GEP offset to identify pointer alias if the GEP has variable
+ // indeces.
+ else
----------------
efriedma wrote:
> *indices.
>
> You should probably fix the big block comment as well; "we can't count on the constant offsets that come from non-struct sources" isn't an accurate description of the LangRef rules for GEPs.
Hi @efriedma. Thanks for your comments. I update the comment block. Is it ok?
Repository:
rL LLVM
https://reviews.llvm.org/D45510
More information about the llvm-commits
mailing list