<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylUk1z4yAM_TX2RVMPxo6bHnxomukv2HsGg2zTISYFOf349SvspG129rKzjLB5ID2eJDpvPlrCSKBVxKx6zMQ-E49ZIy62wMNBEQXbzYSHQya3bMrZYULDq6bO5MNq0DuvCFS22W2FENlmn8mn7gbpG2RuEP5A1e4fr7YT8TTvf-FYv2dvDfTeAwcm5ylFXRzuL57Ao_fh6mIhq_YgmGhZPsHCnFAmd4tdGVLgDUsaqQ6WhUByZaKyEF-a1oD9T4FpKyDNYfpW_uVx25AnfzypgAbIw6A11w60U9MAp-DNrDFC5CKN5D7g6APCGUPnI4L2BpcEFUR8nXHSyLErp5oMWOJ9PEagEcHGOCP4iUnwPfLRm6UR7noKiHdn1OSD_cQiRYBBUtbBSHSK6RXJZzZWVgzedN5R4cPAO588f-kGX_rXvspNW5mH6kHlaqbRh_bcm77P5-DaP3j43rkrtD8ycO58_d1xti-sg-GiNfJiU0lZ5WNrNOK2NtWm7mptZKP7rbqvSinrbS3re5k71aGLLbcok3LCtzVdXnPD8v9XYFsppBRl2YhKbEpZ1BrrujbalE2nykZntcAj16xIPKk8eWgXym4eIh86Gyl-H6oY06vHRTArJEtuAf5E9mg_FVk_pbfGRYcBCTokwrB2nEY1XR6In8B5f-L9ydgUs3b12s6FJl9yaZdEfgNr8Dj_>53223</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [optimization] gcc get better code than clang on loop condition with vectorization
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          vfdff
      </td>
    </tr>
</table>

<pre>
    test case:
```
__attribute__((aligned(64))) float a[8000],b[8000],c[8000],d[8000],e[8000];
__attribute__((aligned(64))) int indx[8000];

void foo (int n) 
{
    for (int i = 0; i < 8000; i++) 
    {
        a[i] += 1.0;
    }

    return;
}
```
Compared to gcc, clang produces slightly more verbose code for a sequence,
and it seems the issue only exsit with -ftree-vectorize. see detail https://gcc.godbolt.org/z/Tc6ejfqf3
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVU9tyozAM_Rp40ZQBc2nywEPTzH7Bvmd8EcQdB6e2SC9fvzIkbbOzL-sRIMnS8dEBlDcfPWEk0DJiVj9l5T4rn7KuvNoSHg6SKFg1Ex4OmdiwSWfHCQ17XZOJ7WowOC8JZNbuNmVZZu0-E8_qLtJ3kbmL8EdU7_7zaDsRX-b9Hxjr_eKtgcF74MZUPKWua8HjtRJ4DT7cSixk9R5KBlrcZ1iQU5SJ3WI3hNR4h5JW0sEyEUilDFQV5RentWH_k2BKBaQ5TN_MvyruX8izP51lQAPkYdSatQPt5DTCOXgza4wQWaQjuQ84-YBwwaB8RNDe4DKghIivM04auXfFlJMBS5zHUwQ6ItgYZwQ_MQi-R956s3SEh4EC4sMFNflgP7FIHWCQpHVwJDrH9BWJX2zMrBi9Ud5R4cPImU--fusOX4bXoc5NX5ttvZU5WXLYs1r-TPZkPyVZPyXhGAFGJFBIhGGlT0c5Xaf1Ezjvz5yfjE09K8UbtwUmn4Pr_-LFRbMqtD9x4Nzl9nhg9V64l8Nl9shOWwtR58d-05patdu2aVS10UJ3TdMOj91GKd2IQWxyJxW6mIbIhJjwbZWPfZ4jt70ohSirqivrsq1E0WhsmsZoU3VKVp3OmhJPrGCReCSx8tAvlNQ8Rt50NlL83pQxpn9g0Szhy5mOPvSXwQxDvhzcL8T_AGAHI24">