[PATCH] D123629: [InstCombine] Fold memrchr calls with a constant character.

Martin Sebor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 13 13:27:46 PDT 2022


msebor updated this revision to Diff 422638.
msebor added a comment.

Simplify folding when `Len` is constant and handle subset of cases when it isn't.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123629/new/

https://reviews.llvm.org/D123629

Files:
  llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
  llvm/test/Transforms/InstCombine/memrchr-3.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123629.422638.patch
Type: text/x-patch
Size: 8669 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220413/ea01a69f/attachment.bin>


More information about the llvm-commits mailing list