This change enhances the memchr library function handler to fold calls with one or two consecutive sequences of the same character, analogously to the corresponding feature recently added to the memrchr handler (D123631). Rather than just one sequence as for memrchr, this one handles also two sequences in order to also benefit strchr.
Tested on x86_64-linux by building Clang and running make check-all.
Unrelated change (in strchr rather than memchr)?