instcombine: Migrate strlen optimizations
authorMeador Inge <meadori@codesourcery.com>
Wed, 31 Oct 2012 03:33:06 +0000 (03:33 +0000)
committerMeador Inge <meadori@codesourcery.com>
Wed, 31 Oct 2012 03:33:06 +0000 (03:33 +0000)
commit57cfd71f881ae381fa43667e003f595ffd70ea18
tree51b3c51adbfc59145bcf1438b41fe7b97eaf1756
parenta0885fb8825ed362041b5cf291a007a9f9301ff8
instcombine: Migrate strlen optimizations

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

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