[PATCH] D37893: [X86] Prefer VPERMQ over VPERM2F128 for any unary shuffle, not just the ones that can be done with a insertf128
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 15 00:49:00 PDT 2017
craig.topper created this revision.
The early out for AVX2 in lowerV2X128VectorShuffle is positioned in a weird spot below some shuffle mask equivalency checks.
But I think we want to allow VPERMQ for any unary shuffle.
https://reviews.llvm.org/D37893
Files:
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/avx-vperm2x128.ll
test/CodeGen/X86/avx512-shuffles/partial_permute.ll
test/CodeGen/X86/vector-shuffle-256-v8.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37893.115365.patch
Type: text/x-patch
Size: 9904 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170915/7b613e27/attachment.bin>
More information about the llvm-commits
mailing list