[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
Wed Oct 2 10:09:33 PDT 2019


xbolva00 updated this revision to Diff 222857.
xbolva00 added a comment.

Addressed review comments


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.222857.patch
Type: text/x-patch
Size: 9409 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191002/3616328c/attachment.bin>


More information about the llvm-commits mailing list