[PATCH] D15894: Implement load to store => memcpy in MemCpyOpt for aggregates

Amaury SECHET via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 5 10:29:47 PST 2016


deadalnix created this revision.
deadalnix added reviewers: craig.topper, spatel, dexonsmith, Prazek, chandlerc.
deadalnix added a subscriber: llvm-commits.

Most of the tool chain is able to optimize scalar and memcpy like operation effisciently while it isn't that good with aggregates. In order to improve the support of aggregate, we try to change aggregate manipulation into either scalar or memcpy like ones whenever possible without loosing informations.

This is one such opportunity.

http://reviews.llvm.org/D15894

Files:
  lib/Transforms/Scalar/MemCpyOptimizer.cpp
  test/Transforms/MemCpyOpt/fca2memcpy.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15894.44022.patch
Type: text/x-patch
Size: 5759 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160105/d47a5797/attachment.bin>


More information about the llvm-commits mailing list