[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
Tue Oct 1 07:47:45 PDT 2019


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

Rebased + added one new test


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.222616.patch
Type: text/x-patch
Size: 7388 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191001/a0ff85d0/attachment.bin>


More information about the llvm-commits mailing list