<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 13, 2015 at 3:37 AM, Erik Eckstein <span dir="ltr"><<a href="mailto:eeckstein@apple.com" target="_blank">eeckstein@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":357" class="a3s" style="overflow:hidden">Author: eeckstein<br>
Date: Tue Jan 13 05:37:51 2015<br>
New Revision: 225786<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=225786&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=225786&view=rev</a><br>
Log:<br>
SLPVectorizer: Cache results from memory alias checking.<br>
<br>
This speeds up the dependency calculations for blocks with many load/store/call instructions.<br>
Beside the improved runtime, there is no functional change.<br></div></blockquote></div><br>Why should we do caching at this layer rather than in the AA layer itself?</div><div class="gmail_extra"><br></div><div class="gmail_extra">And what invalidates this cache? As far as I can tell the vectorizer can both delete and create new instructions, which should put this cache at risk of getting incorrect collisions.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I feel like this patch probably should have gone through pre-commit review. Neither this design nor why it is correct is obvious.</div></div>