[PATCH][InstCombine][X86] Teach how to fold calls to SSE2/AVX2 psrl intrinsics.

Nadav Rotem nrotem at apple.com
Fri Apr 25 14:54:56 PDT 2014


LGTM. 

On Apr 25, 2014, at 12:59 PM, Michael Spencer <bigcheesegs at gmail.com> wrote:

> On Fri, Apr 25, 2014 at 9:43 AM, Andrea Di Biagio
> <andrea.dibiagio at gmail.com> wrote:
>> Hi,
>> 
>> this patch extends the fix committed at revision 20758
>> (http://llvm.org/viewvc/llvm-project?view=revision&revision=207058) to
>> also teach InstCombine how to fold calls to SSE2/AVX2 packed logical
>> shift right intrinsics.
>> 
>> A packed logical shift right with a shift count bigger than or equal
>> to the element size always produces a zero vector. In all other cases,
>> it can be safely replaced by a 'lshr' instruction.
>> 
>> Please let me know if ok to submit.
>> 
>> Thanks,
>> Andrea Di Biagio
>> SN Systems - Sony Computer Entertainment Group.
> 
> lgtm.
> 
> - Michael Spencer
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140425/03ccb4cd/attachment.html>


More information about the llvm-commits mailing list