[PATCH] D27825: [AVX-512][InstCombine] Teach InstCombine to converted masked vpermv intrinsics into shufflevector instructions
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 15 13:13:07 PST 2016
craig.topper created this revision.
craig.topper added reviewers: RKSimon, zvi, delena, spatel.
craig.topper added a subscriber: llvm-commits.
This patch adds support for converting the masked vpermv intrinsics into shufflevector instructions if the indices are constants.
We also need to wrap a select instruction around the shuffle to take care of the masking part. InstCombine will take care of optimizing the select if the mask is constant so I didn't bother checking for that.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 77123 bytes
Desc: not available
More information about the llvm-commits