[PATCH] D130922: [InstCombine] Add support for stpncpy folding
Martin Sebor via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 14 10:35:36 PDT 2022
msebor updated this revision to Diff 460150.
msebor added a comment.
Restore early return when `GetStringLength` returns zero.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130922/new/
https://reviews.llvm.org/D130922
Files:
llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/simplify-libcalls-i16.ll
llvm/test/Transforms/InstCombine/simplify-libcalls.ll
llvm/test/Transforms/InstCombine/stpncpy-1.ll
llvm/test/Transforms/InstCombine/strcpy-nonzero-as.ll
llvm/test/Transforms/InstCombine/strncpy-1.ll
llvm/test/Transforms/InstCombine/strncpy-4.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130922.460150.patch
Type: text/x-patch
Size: 43938 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220914/b392cbfd/attachment.bin>
More information about the llvm-commits
mailing list