<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/70238>70238</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
libc++, find(char*, char*, int) does not optimize to memchr
</td>
</tr>
<tr>
<th>Labels</th>
<td>
libc++
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
DenisYaroshevskiy
</td>
</tr>
</table>
<pre>
Seems like this case was missed in recent changes. For int constants it seems important~ish, like find 0.
https://godbolt.org/z/3r68MxWrc
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckMGK3DwQhJ9GvjRr5NbY4znoMLuDb__pP4QcZatn1FlZGtSaTXYPefZgJ5AlIFBTUFXU50T4lois6p9Vf2nco4Zc7IUSy1dXsgR6k1d-b-bs3-3_RKtA5FeCGlhgcULw3QmsLEIeOEGhhVKFJbh0I2lhygV4E3KS6lIV4Aqy5_B6z2XTfrIEhS-_g-HKyYNulb4ofQ613kWZs8JJ4XTLfs6xtrncFE4fCidThvG_H1_K0nhr_MmcXEO2G04j9mOnsQn26Pyx86MZ-q7H_mBGfxhw6JzRbrz6fm7YokbTaey7EbuDbofBEV17sxD15opaHTStjmMb49u6dTcs8iB71GjGJrqZouz8ECPPi8Ln_eHGs9jN9DQ_bqIOOrJU-RtTuUaynz0v-3qF4xJcUXjelE8np6rwBD6TQMoV8r3yyh8ENcNK6xIKNI8S7T_UuIbH3C55VTht5X--p3vJ32ipCqd9kCic9k2_AgAA__9xh6pP">