patch: make instcombine remove shuffles by reordering vector elements

Nick Lewycky nicholas at mxc.ca
Fri May 3 23:00:54 PDT 2013


This patch teaches instcombine to detect cases where we can change the 
construction of a vector to change the order of the elements, and 
consequently remove the need for a shufflevector operation later on. 
Please review!

It would be nice in particular if the folks working on vectorization 
would try it out. One thing I haven't even tried is matching horizontal 
operations as a place to start the "can evaluate in different element 
order?" machinery.

Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-shuffle-order-3.patch
Type: text/x-diff
Size: 14427 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130503/ff902ac6/attachment.patch>


More information about the llvm-commits mailing list