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)
commit40b6fac36c691357e402c0bf0d0d78f1fcd8df4c
tree15013f9611129e9cd38d0408f19979f6be19164a
parent6b4ebcc653b63c544a9eca39441e85a5a18f140f
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.

llvm-svn: 165915
llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/strcmp-1.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/strcmp-2.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/strncmp-1.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/strncmp-2.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/weak-symbols.ll [new file with mode: 0644]
llvm/test/Transforms/SimplifyLibCalls/StrCmp.ll [deleted file]
llvm/test/Transforms/SimplifyLibCalls/StrNCmp.ll [deleted file]
llvm/test/Transforms/SimplifyLibCalls/weak-symbols.ll [deleted file]