DAGCombiner: Merge store/loads when we have extload/truncstores

Nadav Rotem nrotem at apple.com
Tue Apr 2 08:42:29 PDT 2013


LGTM. 

On Apr 2, 2013, at 8:28 AM, Arnold Schwaighofer <aschwaighofer at apple.com> wrote:

> DAGCombiner: Merge store/loads when we have extload/truncstores
> 
> This is helps on architectures where i8,i16 are not legal but we have byte,
> and short loads/stores like on ARM.
> 
> Allowing us to merge copies like the one below on ARM.
> 
> copy(char *a, char *b, int n) {
>  do {
>    int t0 = a[0];
>    int t1 = a[1];
>    b[0] = t0;
>    b[1] = t1;
> 
> radar://13536387
> 
> <0001-DAGCombiner-Merge-store-loads-when-we-have-extload-t.patch>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130402/0175f882/attachment.html>


More information about the llvm-commits mailing list