instcombine: Migrate strcat and strncat optimizations
authorMeador Inge <meadori@codesourcery.com>
Sat, 13 Oct 2012 16:45:32 +0000 (16:45 +0000)
committerMeador Inge <meadori@codesourcery.com>
Sat, 13 Oct 2012 16:45:32 +0000 (16:45 +0000)
commit73d8a5864fe8c52be2b710c10ec155019738aad5
tree509c384925ba83c09c1e9e4c1a12d64f2e33ac40
parent5e8904576a5260cfd5b14596e338a4bb25b9817e
instcombine: Migrate strcat and strncat optimizations

This patch migrates the strcat and strncat optimizations from the
simplify-libcalls pass into the instcombine library call simplifier.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165874 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SimplifyLibCalls.cpp
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/strcat-1.ll [new file with mode: 0644]
test/Transforms/InstCombine/strcat-2.ll [new file with mode: 0644]
test/Transforms/InstCombine/strcat-3.ll [new file with mode: 0644]
test/Transforms/InstCombine/strncat-1.ll [new file with mode: 0644]
test/Transforms/InstCombine/strncat-2.ll [new file with mode: 0644]
test/Transforms/InstCombine/strncat-3.ll [new file with mode: 0644]
test/Transforms/SimplifyLibCalls/StrCat.ll [deleted file]
test/Transforms/SimplifyLibCalls/StrNCat.ll [deleted file]