[llvm-commits] A patch to add vector-zext support to LLVM

Rotem, Nadav nadav.rotem at intel.com
Sun Feb 20 01:53:55 PST 2011


Hi,

Currently (according to LangRef) LLVM does not support code generation of vector zext (PR 9267). It looks like the problem is in the DAGCombiner which folds the zext into complex load instructions. The attached patch prevents this optimization on vectors since AFAIK none of the supported targets knows how to perform load+vector_zext in one instruction.
This patch enables code generation of vector zexts, which are expanded properly.
Added tests and changed LangRef.

Thanks,
Nadav
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110220/951c1bc2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zext_patch.diff
Type: application/octet-stream
Size: 4952 bytes
Desc: zext_patch.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110220/951c1bc2/attachment.obj>


More information about the llvm-commits mailing list