<div dir="ltr">Thanks. Done. Plz see my update.</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-14 18:21 GMT+04:00 Andrea Di Biagio <span dir="ltr"><<a href="mailto:Andrea_DiBiagio@sn.scee.net" target="_blank">Andrea_DiBiagio@sn.scee.net</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
  Hi zinovy,<br>
<br>
  Could you please add a test for it?<br>
<br>
  You should be able to generate a test starting from your original example and building it with -emit-llvm. The resulting IR can then be used/adapted to create an 'opt' test that verifies that the body of the loop is correctly vectorized.<br>

  The idea is that your new opt test would RUN opt with flags '-mattr=+avx512f' (or -mcpu=knl) and '-loop-vectorize'.<br>
<br>
  You should be able to check that, with your change, the body of the vectorized loop now only contains fmul <16 x float> instructions. Before your change, it was producing instead a sequence of fmul <8 x float>.<br>

<br>
  I hope this make sense :-)<br>
<br>
  Andrea.<br>
<br>
<a href="http://llvm-reviews.chandlerc.com/D3078" target="_blank">http://llvm-reviews.chandlerc.com/D3078</a><br>
</blockquote></div><br></div>