[InstCombine] Fold memrchr calls with sequences of identical bytes.
authorMartin Sebor <msebor@redhat.com>
Tue, 24 May 2022 23:00:11 +0000 (17:00 -0600)
committerMartin Sebor <msebor@redhat.com>
Tue, 24 May 2022 23:00:11 +0000 (17:00 -0600)
commit46c0ec9df46f5bb1d53ae5b98a337e23687bd3ff
tree969a55ad192aa0a44bdbb077e76870adb107bf86
parent2a5d5078d5dadb1aaa4487c89a92c91a98e2ed12
[InstCombine] Fold memrchr calls with sequences of identical bytes.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D123631
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/memrchr-4.ll