<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/144683>144683</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Incorrect branch weights being added around vector epilogue loops
</td>
</tr>
<tr>
<th>Labels</th>
<td>
vectorizers,
vectorization
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
david-arm
</td>
</tr>
</table>
<pre>
See PR https://github.com/llvm/llvm-project/pull/144682, which adds a test showing that we set the wrong branch weights in some cases, in particular in the vector epilogue iteration count check block where the branch weight suggests we always skip the epilogue.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUkk2O2zAMhU8jb4gJbPkn8UKLtoMA3RXtCWiJttQoliHSMaanL-wi6N9qVoII8Ynve0TmMM1ERrUfVfta4Co-ZePwEdwL5nsxJPdmvhHBl6_gRRZW9Qelr0pfpyB-HU423ZW-xvh4Hi9LTt_JitLXZY1R6WvVNN1FK_0JNh-sB3SOAUGIBdinLcwTiEeBjYBJQDzBltM8wZBxth42CpMXhjADpzuBRSbe9cIMC2YJdo2Y99ve-iArKQMtIaZpJQhCGSWkGWxaZwHryd5giMneYPOU6ej66yvgdZqIhfeRMG74xsC3sBwvn8Knwpna9XWPBZnq3Ja66Ut9LrwhbFusxnG4tNaObnC262rsx64np_uqLYLRpW7LrrpUujqX51Nd2b4_9yNWtrHN2KmmpDuGeNqJnlKeisC8kjlQ1kXEgSIfoWn9y2_4QZmV3jH_UTt879X2tcjmiGdYJ1ZNGQML_5aXIJHM59mmnMnKv-QH2kNC58gB5rTO7j_MMaWFizVH8-49Obzxc1Pq4mH0zwAAAP__Iwvhrw">