[PATCH] D26811: [MemCpyOpt] Don't sink LoadInst below possible clobber.
Amaury SECHET via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 23 16:04:34 PST 2016
deadalnix added a comment.
@efriedma load/store of aggregate cannot be optimized the same way other load/store are done for various reasons.
If the aggregate do not contains padding, then it is possible to deaggregate in a serie of load/store and recompose the integrate. But in the case the aggregate has some padding, this transformation is lossy. However, doing it is memcpy and alike is not lossy so here you go. This is also useful for large aggregates. This transformation is already gated on aggregates types.
Repository:
rL LLVM
https://reviews.llvm.org/D26811
More information about the llvm-commits
mailing list