<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56627>56627</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[LoopVectorizer] Assertion `U && "Cannot dereference end iterator!"' failed
</td>
</tr>
<tr>
<th>Labels</th>
<td>
vectorization,
llvm:crash
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
d-makogon
</td>
</tr>
</table>
<pre>
Godbolt link: https://godbolt.org/z/dhcfc4xss
opt crashes on loop-vectorize pass with aarch64 in target triple. x86_64 works well.
Removing `%tmp6 = mul i32 0, 0` resolves the crash.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdkUGv2yAMxz8NuViNCGlIe8iha7Vddpq0XSdCTMJKIALS9_Y-_ZxU1aZJgDHG5vc3fRh-d1_C0AeXwVl_Z_UFppyXRBsmPtMYn9EyxJG8D5rDpI0-vqfE-I3xy3MNSwYdVZowQfDgQlgOD9Q5RPuBsKiU4M3mCZSKepJHsB6yiiNmyNEuDkt4P8mfFHgL8U530bny3_rfcA4P60dgkjPR5HmRwOobzKsDWwugwystkkPEFNyDMPKET6SyGLp6ONdnVWSbHXas-fSVAH-8-CJrbnBJCWO2BE9VvgMTkgYZcVXehwwDRjQ0vUZAP4DNGBXlM1HRJSZaMMo6HIo1uu6_HpLytS91mMlx7vEyhyWGXwRBrk1pxUSbRkrRFlPXmr6qBoGVkZXi5tTUfd-jbs5naZQWWDjVo0ubFnr-1Wq1Cdhxrhv6_lZ92buwnTa3wnaCC8FbwStRt6IqqWojudGmaurqZE7syHEmJeWWvH17Ebsdtl_HREFnU05_g_SzdvS4N3Wrr9Y8hdgNh1ndwxh8sSvrdll_ANwuxzU">