<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 10, 2016 at 11:36 AM, Nicolai Hähnle <span dir="ltr"><<a href="mailto:nhaehnle@gmail.com" target="_blank">nhaehnle@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">nhaehnle added a comment.<br>
<span class=""><br>
In <a href="http://reviews.llvm.org/D17279#353238" rel="noreferrer" target="_blank">http://reviews.llvm.org/D17279#353238</a>, @dberlin wrote:<br>
<br>
> Doesn't AA have an existing API that gives you exactly the info you want<br>
>  here (Does this call ref the memory touched the things in the store list)<br>
<br>
<br>
</span>I see no such interface in AAResults at least. All queries test $something against a MemoryLocation, but the Stores are instructions because they could also be call sites. </blockquote><div><br></div><div>Errr, you should be using the MemoryLocation:;get for actual stores, and CS for callsites.</div><div><br></div><div>So you should just be able to walk the store list and test against that.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There would have to be an interface to test an instruction against an instruction, or two call sites against each other.<br>
<br></blockquote><div><br></div><div>It would just do the above :)</div><div><br></div></div></div></div>