[PATCH] D123816: [InstCombine] Fold strnlen with a bound of zero and one.
Martin Sebor via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 14 13:18:24 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 a bound of either zero or one.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D123816
Files:
llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/strnlen-1.ll
llvm/test/Transforms/InstCombine/strnlen-2.ll
llvm/test/Transforms/InstCombine/strnlen-3.ll
llvm/test/Transforms/InstCombine/strnlen-5.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123816.422946.patch
Type: text/x-patch
Size: 9954 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220414/7f4ffb2d/attachment.bin>
More information about the llvm-commits
mailing list