[PATCH] D85963: [SLC] sprintf(dst, "%s", str) -> strcpy(dst, str)

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 14 09:13:41 PDT 2020


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

Implemented suggested transformations.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85963/new/

https://reviews.llvm.org/D85963

Files:
  llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
  llvm/test/Transforms/InstCombine/2010-05-30-memcpy-Struct.ll
  llvm/test/Transforms/InstCombine/sprintf-1.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85963.285668.patch
Type: text/x-patch
Size: 13028 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200814/f94d1559/attachment.bin>


More information about the llvm-commits mailing list