[SimplifyLibCalls] Optimize memchr() with known char+str and unknown length
If both the character and string are known, but the length potentially isn't, we can optimize the memchr() call to a select of either the known position of the character or null. Split off from https://reviews.llvm.org/D122836.
Loading
Please sign in to comment