instcombine: Migrate strcmp and strncmp optimizations
authorMeador Inge <meadori@codesourcery.com>
Mon, 15 Oct 2012 03:47:37 +0000 (03:47 +0000)
committerMeador Inge <meadori@codesourcery.com>
Mon, 15 Oct 2012 03:47:37 +0000 (03:47 +0000)
commita239c2e6a7775e890bcfb0867b84e512ceb993de
tree9d0fd3f6dc5f62bffa6b335de67fd8c5ac62b9c4
parentbaf522ab5f365975652d2ef61831b5a426700479
instcombine: Migrate strcmp and strncmp optimizations

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

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