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

Andrea_DiBiagio at sn.scee.net Andrea_DiBiagio at sn.scee.net
Thu Jul 11 10:29:51 PDT 2013


> 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




More information about the llvm-commits mailing list