OSDN Git Service

instcombine: Migrate strpbrk optimizations
authorMeador Inge <meadori@codesourcery.com>
Wed, 31 Oct 2012 04:29:58 +0000 (04:29 +0000)
committerMeador Inge <meadori@codesourcery.com>
Wed, 31 Oct 2012 04:29:58 +0000 (04:29 +0000)
commit08684d1f069711692502d091669a6031c31cdd4a
tree7402252dfa81b08d1ba144a9d8a10b57e0396ad9
parentc5c970ee852e345ded08cdfc33c4621ca76211b1
instcombine: Migrate strpbrk optimizations

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

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