<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/78007>78007</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [vectorization] the pragma prevent the 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: https://gcc.godbolt.org/z/1rb1vG5GP
```
#define ARRAY_SIZE 10000
#define ELE_TYPE int

void __attribute__((noinline)) test_direct_access_2(int *A, ELE_TYPE *B, ELE_TYPE *C) {
   #pragma clang loop vectorize_width(1) interleave_count(1)
   #pragma nounroll
   for (int i = 0; i < ARRAY_SIZE; i++) {
      if (C[i] > 0)
      C[i] = C[i] + B[i] * A[i];
      else
      C[i] = C[i] - B[i] * A[i];
 }
}
```

* the above case doesn't generate vectorization body for llvm, but it does when we comment the above pragma **#pragma clang loop vectorize_width(1) interleave_count(1)**


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykVE1vwzYM_TX0hWgg03HjHHyw81EM2KHodukuhmzRjgZFCizZwfrrBztem3QDehggJKJoPlLvkZLe684y55CWkO4jOYST6_OxVW0b1U79lQMVGNgHSAo8hXDxkBRAR6Bj1zSrzqnambByfQd0_AA6xn0djy_pyyuIPYgCnsWybiYlilttGYu3t-K9-u2XPw4YCyH-5T_8eqh-f389oLZh8c2_o9MKq0qG0Ot6CFxVQBlQZp22RlsG2gJt55IrpXtuQiWbhr2vCCjTNiBQUQDtvjIAFeX3g90EApvylhQRgZJLL7uzxMZI26Fx7oIjN8H1-oOrq1bhBJTFU5y2gXvDcuSqcYMNy_l_YFk32N4Z8-lqXY9LnRoh2aOApJy3uzvK5jOgcl6PdSKibieIHaSlhnSPkBxQ3KdHxDvn_s6gEssvo8BiMSB5SMDG889oTz9hwWa_KPu5-dYtS08UGE6MsnYjYyM9o3LsLdAmYMeWexn4UwoZtLM4te7MpTHjedK2HgLqMAfi9cQWr4yNO5_ZhjvwRRWgYl7_X_Eb0N1lIpUnaptsZcR5vBFpLLIspeiUN42qs7oliteprLdKqGfeqFZxLTIhSEY6J0FrEceJiEmktMq2nLW1FEJtY9kKgrXgs9RmNd15mshIez9wvsmE2ERG1mz8POdElq84O4FoGvs-n2Ke6qHzsBZG--C_UIIOZn4gHiieZJ2IWyi69Dz-w-XDd9HQm_zbw6HDaahXjTsDHW8CzX9Pl979yU0AOs7FeaDjXPzfAQAA__8pxlt2">