instcombine: Migrate strstr optimizations
authorMeador Inge <meadori@codesourcery.com>
Sun, 11 Nov 2012 03:51:48 +0000 (03:51 +0000)
committerMeador Inge <meadori@codesourcery.com>
Sun, 11 Nov 2012 03:51:48 +0000 (03:51 +0000)
commit6e1591a5d5fba3bde66e3ffd4dd73edd6b94cecf
treedbd8a21553c4c3a7af313e3522b36446e1f085dc
parentb69bf6be1b042a5f06a623fc546107fc6d9f46c4
instcombine: Migrate strstr optimizations

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

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