instcombine: Migrate memcmp optimizations
authorMeador Inge <meadori@codesourcery.com>
Sun, 11 Nov 2012 05:11:20 +0000 (05:11 +0000)
committerMeador Inge <meadori@codesourcery.com>
Sun, 11 Nov 2012 05:11:20 +0000 (05:11 +0000)
commitbb51ec8b62c2819882b82a2510bf4df6f459bd51
treedf5b7dc662ea28fb25dd4030a6fec6ac8659af08
parent6e1591a5d5fba3bde66e3ffd4dd73edd6b94cecf
instcombine: Migrate memcmp optimizations

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

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