<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/130432>130432</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
vectorize std::search
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
hiraditya
</td>
</tr>
</table>
<pre>
As part of #84663
std::search is quite similar to std::string::find and I've already implemented a vectorized version of it in libc++ (with a combination of memchr+memcmp). So it should be possible to vectorize std::search for several primitive data types.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0Uc2O2ywUfRq8uRoLXxw7WbBI9CnSt-4TXMyd-FZgXMAepU9feRp1pEpdcQSH86NDpchjYbbqdFOn_xra6pyynSWTl_qkxiX_tNcCK-UK6R0UmnM_DEbpq9LXUr0yV2WuhSlPM0iBH5tUhiJRAmWoCb44Ncvy-I3fZfFAi4f_FY47A4XM5J8gcQ0ceansgWDnqaYsP9nDzrlIWo4IUkEWCOImhTeFN1B4_pA6A8GUopOF6osZOU5zVng7QFwVXlr4lg6BMqcteHAMaypFXOAj6h8_-LvYe8pQeOdMAdYsUarsDJ4qQX2uXNrGW-Mv5kIN227su37ohn5sZusGPJmBRybj0ekz6uFEF6P73o-9QdeIRY0nbfS5u6Dux3actCOnve88eaRR9ZojSWhD2GOb8qORUja2ndG9wSaQ41A-B0Rc-AM-XxXisWe2x6c3tz2K6nWQUsuXTJUa2P6zdLPlYOda13Lc4l3h_SF13lw7pajwfui8jrc1p-88VYX3T_ei8P6Kt1v8FQAA___HQ8g4">