<div dir="ltr">Johannes, <div><br></div><div>Thanks, I have been following along some of the thread(s) and the phab reviews. The scope of this work is more encompassing than our current needs and I've looked at trying to carve a piece out.</div><div> </div><div>It's not clear to me what purpose the llvm.noalias intrinsic serves right now. Also, if a mem instruction has !noalias metadata, then it should not be aliased, but I must be missing some complexity. For example, if you look at the alias of two memory locations and they are both tagged with noalias MD, that should be safe to NoAlias providing they have no specific !scope tag? I've looked at the ScopedNoAliasAA but during the inline no !scope MD is created therefore it's not marked as NoAlias from that analysis (it returns MayAlias if no scope MD or no noalias MD).</div><div><br></div><div>Thanks,</div><div><br></div><div>Ryan</div></div><div dir="auto"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 28, 2020, 8:53 PM Johannes Doerfert <<a href="mailto:johannesdoerfert@gmail.com" target="_blank">johannesdoerfert@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Ryan,<br>
<br>
the alias metadata was (and is) broken for various reasons.<br>
he replacement is currently under review, I can point you to it,<br>
however, to be honest, I'm unclear how we are supposed to help<br>
you with LLVM 6 right now.<br>
<br>
Cheers,<br>
   Johannes<br>
<br>
<br>
On 9/28/20 7:00 PM, Ryan Taylor via llvm-dev wrote:<br>
> Given some code:<br>
><br>
> void func (float * restrict a, float *b) {<br>
>    for (int i =0; i < 100; ++i) {<br>
>      a[i] = b[i] + 1;<br>
>    }<br>
> }<br>
><br>
> float * aa;<br>
> float * bb;<br>
> int main() {<br>
>     func(aa, bb);<br>
>     return 0;<br>
> }<br>
><br>
> produces IR that has the llvm.noalias intrinsic along with the !noalias<br>
> metadata:for both the load and store, however, AA returns MayAlias, I would<br>
> expect a NoAlias?<br>
><br>
> This is also an older version of llvm: 6 (yes, I know, sigh).<br>
><br>
> Thanks,<br>
><br>
> Ryan<br>
><br>
><br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org" rel="noreferrer" target="_blank">llvm-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>