<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54193>54193</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Suboptimal and strange restrict codegen
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
psiha
</td>
</tr>
</table>
<pre>
For lack of a better title...
https://godbolt.org/z/8a9dhjGaq
- 'strange' part: restricted_impl lacks the alias checks as expected but it also has loop unrolling which the unrestricted_impl version does not (but could have)
- suboptimal: restricted_wrapper_impl gets the same codegen as unrestricted_impl ??
- suboptimal and strange: restricted_wrapper_cached_ptr_impl gets the same codegen as unrestricted_impl ????
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydkt2OmzAQhZ8GbkaLiIEELnyx1Sp9gD7AaoxnsbcGu7ZJ2j59B6K0UnavKg0wP9Y5nzwor3_Js4_gcPwO_g0QFOVMEbLNjqqqKuqXon42OYdUNM-FOHNMXivvcuXjxNVvfnoctHn_ij9ux2_vJyjEKeWIy0ScQcCYWQMicdOOmfSrnYPbvRNkQ4DOYoLR0NbgjH4G2s6BWjPYzPPkwfDAeR9gXaJ3zi4TXI0dza7AvQf1C8Vk_QLaU4LFZ4bqN7nRr06z2IXZhjtwWpUP2c7oHkCvEUOgeJOcKN94E87EQpomWjbej-5Fc97igzzgouF-N59bjcgXoV9D_m_XPUotGz00A5b7SuW3Txn-AtyFyzU6-bB2m82qqtHPXDh3uX-eQvTvvCcubUorJU669jA0pZEDnU7Y4kFRezwqEod6HJpuFEr1uhVvp9KhIpdk0X0phFjoCrsE50X3UlopaiHqpm7rvhtEXQ2EpJq2aY-EfT_qoq1pRuuqjWP7H8sodyS1TomHzqac_g0xJTstRLsd6-OajY8yJGuw3I3lDv4HQroMoA">