[PATCH] Lower certain build_vectors to insertps instructions

Filipe Cabecinhas filcab+llvm.phabricator at gmail.com
Sat Apr 26 22:54:24 PDT 2014

Hi nadav, delena, craig.topper,

Vectors built with zeros and elements in the same order as another
(source) vector are optimized to be built using a single insertps

Further optimizations are possible, described in TODO comments.
I will be implementing at least some of them in the near future.

Added some tests for different cases where this optimization triggers.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3521.8868.patch
Type: text/x-patch
Size: 9162 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140427/87b60281/attachment.bin>

More information about the llvm-commits mailing list