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)
commit6f8e01121aa4e5d9bfe98838954726055c54590b
treed46424da34a49dcae382915e03ad0f6f2d43c98e
parente2d7e4e8e5fc04e10ac0a2bd5307a722eb7fdbc1
instcombine: Migrate strpbrk optimizations

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

llvm-svn: 167105
llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/strpbrk-1.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/strpbrk-2.ll [new file with mode: 0644]
llvm/test/Transforms/SimplifyLibCalls/StrPBrk.ll [deleted file]