[PATCH] D20665: Claim NoAlias if two GEPs index different fields of the same struct

Daniel Berlin via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 1 20:27:18 PDT 2016


You definitely should produce metadata to do this optimization .

(the other alternative, adding some attribute to GEP, tends to be vastly
non-preferred)


On Wed, Jun 1, 2016 at 8:14 PM, Taewook Oh <twoh at fb.com> wrote:

> twoh added a comment.
>
> @dberlin Thank you for your time in reviewing this patch! I'll try to
> figure out if it is possible to exploit clang annotated metadata to enable
> this optimization, because this is why gcc outperforms llvm for some of our
> internal benchmarks. It would be great if you can give me suggestions as
> well.
>
>
> Repository:
>   rL LLVM
>
> http://reviews.llvm.org/D20665
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160601/deadfd45/attachment.html>


More information about the llvm-commits mailing list