<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJylk0tv4yAQgH8NvqBGBNc2OXDIQyut1F53jxEGbONSkwXstvn1O7hJ81ipl0XYngfzMczg2qkPjkoyOaPwwWvF3pndT9pHI4XdC6X2ElE2DsG0g1ZYdsJjRNcH847oFks3hIhD53xM1to6-QJ2RHaIrPF3wwwQF71RGtEVRtXmEpNcBuVXlsalTZnBKN9hAi6cxC1ms4joZp53mDOqv0Fd4foLrr_g-m9waaSTF5seFbs5_KTih_Npkp1u8GcpPhf-kwCqdrcGoKSoBDxh7kNm3nkNu3F_0ZJQkpN89f65hU6JAU9aRufNUePYmQDNS8Xf4qenX8_JP7i4uA7rYjwElK8R_QGzdap2Ni6cb0E7wvP7jyyqqSuPmeK5WuUrkYkxwl3gSkwmrZ7EEF4-stFbfgczsRvrhXSvoFg7nT8PB-96yBJUE8KoAwhFTkuadZyVzaMsKa1WuqkKmjeUUNHIqtZFTZd1k1lRaxs4FB1ROug3PCNAhhZk_5-B4bAhJcslIywvc7aoiBBVuSwIlUKJgqBHol-FsYvESXXKPJ-R9dgGcFoTYrg4RZj_KT0nDBlGE63mz7CrGdqvXolo3IDfINvTzcjmtPic018ztxAe>53262</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Missing vectorization with stride
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
davidbolvansky
</td>
</tr>
</table>
<pre>
`void pred8x8l_vertical_add_c(unsigned char *pix, const short *block,
int stride) {
int i;
for (i = 0; i < 8; i++) {
int j;
for (j = 0; j < 8; j++) {
pix[j] = pix[j - stride] + block[j];
}
pix += stride;
block += 8;
}
}`
ICC can vectorize this code, LLVM cannot.
https://godbolt.org/z/Wqc57vh6z
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9k0tv4yAQgH8NvqBaBOLXwYc8VGml9rp7jDAQG5ea1GC3za_fgSbNo1IRxvNgPmYY0Vj5WaOczFZLfBiVLD9Ks5vV6LXgZsel3AlEy2lwuh2UxKLjI0Z0ddAfiG6wsIPz2HV29MHaGCtewI7IFpEV_m3oAeL8qKVCtMKoWF9igksjdmXZ23BoqTFiW0zAhYO4wWUUEV3HeYc5o_ob1BWuv-D6C67_BRdGqDxb9yjbxvCTih_O1QQ7XeOvq_ja-CMBVGxvDUAJUQF4wtyHRN55T3nj_qYFIScn-Wr9s4FO8QHPSng76qPCvtMOmhcuf4Ofnv4-B_9gfXod1nl_cIitEH2E2VrZWONTO7agHeH79yayYu7yYyJrJitW8cRrb1T9rJ3TQ_t9HvfaDvhd--5UXTKNpr7Dg3dqUmFfQTFmPv8eDqPtgQMqUCflQMgYzWnS1cumWixkw2TRZCJbqpJVTLKcLxu5J3LPEsMbZVwNbUCUDuodRwTI0JRE15RQShaLkpQsZ2VaEM6LfJERKrjkGUFLol65NmnII9SdjHVMqZlaB06jnXcXJ3fxjah4HPD55OFd1JLPOtzczAf38pnEDOpYwX8xb_rI">