[PATCH] D123626: [InstCombine] Fold memrchr calls with constant size of zero or one.
Martin Sebor via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 12 13:30:16 PDT 2022
msebor created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
msebor requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This change implements folding of `memrchr` calls with constant sizes of zero and one, analogously to `memchr`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D123626
Files:
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/memrchr-2.ll
llvm/test/Transforms/InstCombine/memrchr-3.ll
llvm/test/Transforms/InstCombine/memrchr-4.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123626.422319.patch
Type: text/x-patch
Size: 15917 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220412/3c803c5b/attachment.bin>
More information about the llvm-commits
mailing list