Fix PR26051: Memcpy optimization should introduce a call to memcpy before the store...
authorMehdi Amini <mehdi.amini@apple.com>
Wed, 6 Jan 2016 23:50:22 +0000 (23:50 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Wed, 6 Jan 2016 23:50:22 +0000 (23:50 +0000)
commit7fee368539d37afde20fb2122714f6aec58fdfc9
tree850d62d7a991b21525d9d121777e0260091d2a83
parent3442ec90cd9f86fef64814aa2adc8229377f8336
Fix PR26051: Memcpy optimization should introduce a call to memcpy before the store destination position

This is a conservative fix, I expect Amaury to relax this.
Follow-up for r256923

From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256999 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/MemCpyOptimizer.cpp
test/Transforms/MemCpyOpt/fca2memcpy.ll