[llvm-dev] Differentiate array access at IR level
Hiroshi Yamauchi via llvm-dev
llvm-dev at lists.llvm.org
Tue Feb 18 08:39:23 PST 2020
It sounds like alias analysis can help:
https://llvm.org/docs/AliasAnalysis.html
On Sun, Feb 16, 2020 at 10:03 PM Michael Meng via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hi LLVM community,
>
> I am trying to differentiate access to different array elements, for
> example:
>
> for (int i = 1; i < 10; i++) {
>
> a[i] = a[i] + 10;
>
> b[i] = a[i - 1] * 2;
>
> }
>
> If it is possible to tell it loads/stores 3 different array elements:
> a[i], b[i] and a[i - 1] at IR level?
>
>
> Thanks for your time in advance!
>
>
> Best,
> Michael
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200218/97295b84/attachment-0001.html>
More information about the llvm-dev
mailing list