[PATCH] D130666: [InstCombine] Add support for strlcpy folding
Martin Sebor via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 16 13:44:37 PDT 2022
msebor updated this revision to Diff 453112.
msebor marked an inline comment as done.
msebor added a comment.
Revision 1 of the patch with the following changes:
- Annotate source argument `dereferenceable` regardless of the bound.
- Use `getConstantStringInfo` instead of `GetStringLength` to detect unterminated arrays.
- Add tests.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130666/new/
https://reviews.llvm.org/D130666
Files:
llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/fortify-folding.ll
llvm/test/Transforms/InstCombine/strlcpy-1.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130666.453112.patch
Type: text/x-patch
Size: 24268 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220816/7d33ac33/attachment.bin>
More information about the llvm-commits
mailing list