<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 25, 2013 at 12:13 AM, Nadav Rotem <span dir="ltr"><<a href="mailto:nrotem@apple.com" target="_blank" class="cremed">nrotem@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=":5u4" style="overflow:hidden">Hi Tom,<br>
<br>
I am not sure that it is a good idea to generate ExtractElement instructions with dynamic indices at IR level.  I think that this kind of patterns should be matched during instruction selection.</div></blockquote></div><br>
Can you explain why?</div><div class="gmail_extra"><br></div><div class="gmail_extra">extractelement and a vector load provide strictly more information to every mid-level optimization and analysis pass. It makes SROA, inlining, and other optimizations easier. What harm does it cause?</div>
</div>