[PATCH] D123817: [InstCombine] Fold strnlen of constant strings.
Martin Sebor via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 14 13:21:44 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 patch in the `strnlen` series implements folding of calls with constant string arguments.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D123817
Files:
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/strnlen-1.ll
llvm/test/Transforms/InstCombine/strnlen-3.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123817.422947.patch
Type: text/x-patch
Size: 5814 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220414/cb8f196e/attachment.bin>
More information about the llvm-commits
mailing list