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)
commit9a6a190562ca56f5124fc8024afcdddf830eb046
treeaf88abb8f1bfecee8a1af30dfdb3f6531c00d95d
parentcdb2ca54ae8d2892c194052cfb9cb52665398e8d
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.

llvm-svn: 167083
llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/stpcpy-1.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/stpcpy-2.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/stpcpy_chk-1.ll
llvm/test/Transforms/SimplifyLibCalls/StpCpy.ll [deleted file]