[PATCH] D67986: [InstCombine] snprintf (d, size, "%s", s) -> memccpy (d, s, '\0', size - 1), d[size - 1] = 0
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 30 13:53:12 PDT 2019
xbolva00 updated this revision to Diff 222493.
xbolva00 retitled this revision from "[InstCombine] snprintf (d, size, "%s", s) -> memccpy (d, s, '\0', size)." to "[InstCombine] snprintf (d, size, "%s", s) -> memccpy (d, s, '\0', size - 1), d[size - 1] = 0".
xbolva00 edited the summary of this revision.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67986/new/
https://reviews.llvm.org/D67986
Files:
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/snprintf-memccpy.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67986.222493.patch
Type: text/x-patch
Size: 6903 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190930/bb745595/attachment.bin>
More information about the llvm-commits
mailing list