[PATCH] X86: fold SSE2/AVX2 logical shift by immediate amout into zero vector when possible

Stephen Lin swlin at post.harvard.edu
Fri Jul 12 08:33:18 PDT 2013


It seems from the thread that this got approved by all the appropriate
parties, so I committed it for you as r186165.

On Fri, Jul 12, 2013 at 6:57 AM,  <Andrea_DiBiagio at sn.scee.net> wrote:
> Hi,
> I attached the patch against the most recent tot.
> Could you please commit this patch for me? (I have no commit access)
>
> Thanks,
> Andrea Di Biagio
> SN Systems - Sony Computer Entertainment Group
>
>
>
>> From: Andrea DiBiagio/SN R&D/BS/UK/SCEE
>> > From: Nadav Rotem <nrotem at apple.com>
>> > These vectors with these constants can be generated during
>> > legalization.  But it’s not a big deal and we can do without it.
>> >
>>
>> True..
>>
>> > The behavior of shifts by amount larger than the element size is
> defined
>> > for x86 SSE2/AVX2.
>> >
>> > Yes, but we are looking at the semantics of the llvm SelectionDAG,
>> > and we want to lower it to x86.  :)
>> >
>> > In any case, this is correct and I don’t see any reason not to
>> > commit the patch as is.
>>
>> Thanks.
>> Btw. I have no commit access to the repository.
>> Could (any of) you please commit this change for me? :-)
>>
>> Andrea Di Biagio
>> SN Systems - Sony Computer Entertainment Group
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify postmaster at scee.net
> This footnote also confirms that this email message has been checked for
> all known viruses.
> Sony Computer Entertainment Europe Limited
> Registered Office: 10 Great Marlborough Street, London W1F 7LP, United
> Kingdom
> Registered in England: 3277793
> **********************************************************************
>
> P Please consider the environment before printing this e-mail
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>




More information about the llvm-commits mailing list