<div dir="ltr">On 1 February 2013 18:07, Nadav Rotem <span dir="ltr"><<a href="mailto:nrotem@apple.com" target="_blank">nrotem@apple.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The problem is that we decide on the kind of GEP to use only when we vectorize the load/stores. This happens in vectorizeMemoryInstruction. I think that we need to fix this in LoopVectorizationCostModel::getInstructionCost in the load/store switch cases. We have code for checking if the load/store is wide or if it is scalarized.<br>
</blockquote><div><br></div><div style>Good point! Shouldn't be too hard, though.</div><div style><br></div><div style>cheers,<br></div><div style>--renato</div></div></div></div>