[PATCH] D46648: [SimplifyLibcalls] Optimize string concats using s(n)printf
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 9 10:17:25 PDT 2018
xbolva00 created this revision.
xbolva00 added reviewers: bkramer, efriedma.
Herald added a subscriber: llvm-commits.
sprintf(buf, "%s%s", buf, str) -> strcat(buf, str)
snprintf(buf, n, "%s%s", buf, str) -> strncat(buf, str, n)
Repository:
rL LLVM
https://reviews.llvm.org/D46648
Files:
include/llvm/Transforms/Utils/BuildLibCalls.h
lib/Transforms/Utils/BuildLibCalls.cpp
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/concat.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46648.145951.patch
Type: text/x-patch
Size: 10529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180509/b954cad1/attachment.bin>
More information about the llvm-commits
mailing list