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

Ahmed Bougacha via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 1 20:35:00 PDT 2016


Clang already has this: -fstrict-aliasing, which enables struct-path
aware TBAA, via !tbaa metadata.

That TBAA isn't sufficient is intentional though: you're probably
hitting the return PartialAlias at the end of BasicAAResult::aliasGEP
(PR9971).

-Ahmed


On Wed, Jun 1, 2016 at 8:14 PM, Taewook Oh via llvm-commits
<llvm-commits at lists.llvm.org> 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
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


More information about the llvm-commits mailing list