[SimplifyLibCalls] Factor out str/mem libcall optimizations.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Mon, 12 Jan 2015 17:20:06 +0000 (17:20 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Mon, 12 Jan 2015 17:20:06 +0000 (17:20 +0000)
commitfe2d64e0f6671aa1591f98415bd5e11eb35dabfb
tree5984ee151af54da96ba9adc481346caa5d72812c
parentaebee0ee623028b5aa77f8593b7b75a4b89c2598
[SimplifyLibCalls] Factor out str/mem libcall optimizations.

Put them in a separate function, so we can reuse them to further
simplify fortified libcalls as well.

Differential Revision: http://reviews.llvm.org/D6540

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225639 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/SimplifyLibCalls.h
lib/Transforms/Utils/SimplifyLibCalls.cpp