instcombine: Migrate stpcpy optimizations
authorMeador Inge <meadori@codesourcery.com>
Wed, 31 Oct 2012 00:20:56 +0000 (00:20 +0000)
committerMeador Inge <meadori@codesourcery.com>
Wed, 31 Oct 2012 00:20:56 +0000 (00:20 +0000)
commite6d781fd3cf9aa30d1c533308d1fdb6738e4f89f
tree56689c30ddf618297c445e7dccdd0ca559e98df6
parentfa9d1372c99e5b74406a606756ba77d620d575bb
instcombine: Migrate stpcpy optimizations

This patch migrates the stpcpy optimizations from the simplify-libcalls
pass into the instcombine library call simplifier.  Note that the
__stpcpy_chk simplifications were migrated in a previous commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167083 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SimplifyLibCalls.cpp
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/stpcpy-1.ll [new file with mode: 0644]
test/Transforms/InstCombine/stpcpy-2.ll [new file with mode: 0644]
test/Transforms/InstCombine/stpcpy_chk-1.ll
test/Transforms/SimplifyLibCalls/StpCpy.ll [deleted file]