<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 20, 2016 at 1:19 PM, Philip Reames <span dir="ltr"><<a href="mailto:listmail@philipreames.com" target="_blank">listmail@philipreames.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><span class="">
<div>On 08/20/2016 12:59 PM, Daniel Berlin
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Even if you kept the ASTracker concept for some
reason, moving the ASTracker to MemorySSA also would make it
scale significantly better (let's ignore the updating through IR
changes part for a second, as it's orthogonal)<br>
<div><br>
</div>
<div>For MemorySSA, ASTracker stores only clobbering
MemoryAccesses as a SmallPtrSet.</div>
<div><br>
</div>
<div>For adding a load, you add
MSSA-><wbr>getClobberingMemoryAccess(<wbr>load) (this is only
necessary if memoryssa gave up optimizing uses, we could fix
this. Otherwise it's just the defining access of the load)</div>
<div>For adding a store, you add the store.</div>
<div><br>
</div>
<div>For merging, you merge the sets.</div>
<div>For querying for loads, you see if
MSSA-><wbr>getClobberingMemoryAccess(<wbr>load) is in the set (ditto
the above)</div>
<div>for querying for stores, you see if the store, or
MSSA-><wbr>getClobberingMemoryAccess(<wbr>store) is in the set.</div>
<div><br>
</div>
<div>This will scale at least a factor of N better.</div>
</div>
</blockquote></span>
You seem to have interpreted my comment as arguing against
MemorySSA. </div></blockquote><div><br></div><div>Nope, but sorry if it came off that way :)</div><div>I'm arguing in general that it's not a slippery slope, because you already fell down the slope. :)</div><div>(I'll address this one in either email).</div><div><br></div><div>In this one, i'm just pointing out if we either like this abstraction, or want some intermediate point that doesn't require only using memoryssa, we could simply port this abstraction without a ton of trouble.</div><div><br></div><div>(in fact, it's easier that i said, you don't actually have to do anything for adding a load, you only ever have to add MemoryDef's).</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">That was not my intent at all. If we have a realistic
chance of porting to MemorySSA in the near term (and from your other
response, it sounds like we do), then that's definitely the right
direction to move in. <br><span class="">
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div class="gmail_extra">
<div class="gmail_quote">On Sat, Aug 20, 2016 at 12:38 PM, Hal
Finkel <span dir="ltr"><<a href="mailto:hfinkel@anl.gov" target="_blank">hfinkel@anl.gov</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hfinkel
added a comment.<br>
<span><br>
In <a href="https://reviews.llvm.org/D23432#521624" rel="noreferrer" target="_blank">https://reviews.llvm.org/D2343<wbr>2#521624</a>,
@reames wrote:<br>
<br>
> I am not actively objecting to this patch, but I
really don't like the overall direction here. Having a
threshold where our ability to optimize falls off a
cliff just seems really undesirable. As Hal pointed
out, there are likely options for summarizing alias sets
to allow quicker AA queries. How much have we explored
that design space?<br>
<br>
<br>
</span>My understanding from the discussion is that all
uses of the ASTracker are going to be replaced with
MemorySSA-based algorithms; that is why I was okay with
this (for now). If we still need an AST concept, then
we'll want to do something more sophisticated.<br>
<div>
<div><br>
<br>
Repository:<br>
rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D23432" rel="noreferrer" target="_blank">https://reviews.llvm.org/D2343<wbr>2</a><br>
<br>
<br>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<p><br>
</p>
</span></div>
</blockquote></div><br></div></div>