<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/69211>69211</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang: 18: Assertion `ProcessedCount[V] < 100 && "Seem to have processed the same Value a lot"' failed.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
wierton
</td>
</tr>
</table>
<pre>
When compile this program with `-O3 -mllvm -enable-newgvn`, clang crashes:
```
int A[4][4][4][4];
int main(void) {
int i, j, k, l;
for (i = 0; i < 4; i++)
for (j = 0; j < 4; j++)
for (k = 0; k < 4; k++)
for (l = 0; l < 4; l++)
A[i][j][k][l] = i + j + k + l;
return 0;
}
```
This crash can be verified at link: https://godbolt.org/z/3b8bYfj8M
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsU8uO2zAM_Br6QiSQacePgw95ILeiBVps0aNs07ES2QokOYv26wvZ2XW7WEAgJWiGpDiUdE5dRuYKdgfYnSI5-d7Y6lWx9WaMatP-rn72PGJjhrvSjL5XDu_WXKwc8FX5HiETm68JbgatHwNueJS15s3Ir5fHCJkAOmKj5XjBxkrXs4NkD-IE4s1m4rnmoxo97mF3SGF3-twlhxU5SDUCFQ-jWqASIX_eIYZbFXJfg7kFo9-piJ2xCFQohOSEApIDhu0R03kLdJhX-QZ_J1xXwnUlXD8Snujbir6t6Nsn4f9JoVeSXkn6Iyk0SS1tuS7utjgNu9McQiHQXCbN6enwXwcs-8mOc56nEPnpU0UW-yPoPiuIjRyxZnywVZ3iFqVHrcYbJHvsvb_PAtMZ6HwxbW203xp7ATr_ATondVH_6q7Fl6itkrZMShlxFWdlnmaZoDzqq1xQHndUFFmbJXknZNk2XcqyjFMmkYtIVSQoiUWcxSkJyrfxLonLjrqAafK4gFTwIJXehnkMuSPl3MRVVlIcR1rWrN087kTzXAJRmHxbBfymni4OUqGV826N4JXXXC3wZI9xEezeObZemTF8gW_WNOwct0czjR52h5dFhiPGQiBQBpQhEH1nHtAb7OWDwz9aSOh7RicHxhepJ0aJ2vhQGOXYSaW53UaT1dWH_irfT_W2MQPQOdT6dJu7NVduPNB5froDOs-v_xsAAP__QmQVrQ">