[llvm-commits] X86 vector shift patch

Mon Ping Wang monping at apple.com
Sat Dec 20 18:22:07 PST 2008


Hi,

This is a patch that allows us to generate X86 vector shifts (psllq,  
psrlq etc..) for some vector shifts (v2i64, v4i32, and v8i16)  where  
the shift amount is the same for all elements.  This particular patch  
does as a target specific  combine pass because it is easier to  
identify the shift amounts before it gets lowered to something else  
(e.g., build vector of constants can be translated into a load from a  
constant pool).  If someone has a better idea of where it should be  
done or have any other comments, please let me know.

Thanks,
   -- Mon Ping

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vshift.patch
Type: application/octet-stream
Size: 11703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20081220/7112901b/attachment.obj>


More information about the llvm-commits mailing list