Improve load/store to memcpy for aggregate
authorAmaury Sechet <deadalnix@gmail.com>
Wed, 6 Jan 2016 09:30:39 +0000 (09:30 +0000)
committerAmaury Sechet <deadalnix@gmail.com>
Wed, 6 Jan 2016 09:30:39 +0000 (09:30 +0000)
commit9812f7b852cb1d0466d5b4ac7ef66247cf51e0c6
treea439b50735a71b6faf171776cdf5b96c96132e05
parent2d3ec5706a0a8e9de6fe9ed3dc87a0ba1a0942f0
Improve load/store to memcpy for aggregate

Summary: It turns out that if we don't try to do it at the store location, we can do it before any operation that alias the load, as long as no operation alias the store.

Reviewers: craig.topper, spatel, dexonsmith, Prazek, chandlerc, joker.eph

Subscribers: llvm-commits

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

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