]> granicus.if.org Git - llvm/commit
Revert [InstCombine] sprintf(dest, "%s", str) -> memccpy(dest, str, 0, MAX)
authorDavid Bolvansky <david.bolvansky@gmail.com>
Tue, 1 Oct 2019 13:19:04 +0000 (13:19 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Tue, 1 Oct 2019 13:19:04 +0000 (13:19 +0000)
commitd795c5c32c7430e0e6d189ef5a78e54dc2814bd2
tree0f78f31e39fcab34e4e9ccef9d43155e6c2f02c0
parent9b53ccdbcd5dae3bdeea645a00d0a1d152b7c9aa
Revert [InstCombine] sprintf(dest, "%s", str) -> memccpy(dest, str, 0, MAX)

Seems to be slower than memcpy + strlen.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373335 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/2010-05-30-memcpy-Struct.ll
test/Transforms/InstCombine/sprintf-1.ll