[PATCH] D123818: [InstCombine] Fold strnlen calls in equality to zero.
Martin Sebor via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 14 13:23:41 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 adds folding of calls used in equality expressions with zero.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D123818
Files:
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/strnlen-5.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123818.422949.patch
Type: text/x-patch
Size: 5555 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220414/386b075a/attachment.bin>
More information about the llvm-commits
mailing list