[PATCH] D114035: [DSE] Improve handling of `strncpy` in Dead Store Elimination
Fabian Wolff via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 19 05:42:36 PST 2021
fwolff updated this revision to Diff 388477.
fwolff added a comment.
@fhahn Fixed and rebased, thanks for the review! (And I'll need someone to commit this for me. You can use name and email as in commit `6259016361345e09f0607ef4e037e00bcbe4bd40` for attribution. Thanks!)
> Are you planning on also adding support for other `*n*` variants of library calls?
Which ones are you thinking of in particular? `strncpy` is the "easy" one because it always writes exactly //n// bytes, but I can have a look at some others as well.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114035/new/
https://reviews.llvm.org/D114035
Files:
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
llvm/test/Transforms/DeadStoreElimination/libcalls.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114035.388477.patch
Type: text/x-patch
Size: 4509 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211119/04475c23/attachment.bin>
More information about the llvm-commits
mailing list