[PATCH] D36650: [X86] WIP support narrowing operations when only a subvector is demanded
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 12 23:16:19 PDT 2017
craig.topper created this revision.
This is sort of a work in progress to try to see if we can work toward supporting https://reviews.llvm.org/D36454 and other cases where narrowing can give us smaller operations enabling EVEX->VEX.
There are really 2 components to this patch. Combining 2 layers of extract_subvectors/insert_subvectors. And moving a subvector extract through an operation to its inputs.
So far this successfully narrows the final reduction operation in the sad and madd tests. Ideally we'd narrow some of the earlier operations as well.
We also need to support matching horizontal binops from target shuffles in order to convert the final operation to HADD.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 29070 bytes
Desc: not available
More information about the llvm-commits