[X86][AVX] SimplifyDemandedVectorElts - combine PERMPD(x) -> EXTRACTF128(X)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 27 Jun 2019 11:16:03 +0000 (11:16 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 27 Jun 2019 11:16:03 +0000 (11:16 +0000)
commit90e121fbe6b892a0fd4b6d1f971677691547d2d8
treecd05adfb62f5f74eaf28edc3e85ded0b4aafe570
parent687d47c2b0cebf17773def27291fcb8524f4313b
[X86][AVX] SimplifyDemandedVectorElts - combine PERMPD(x) -> EXTRACTF128(X)

If we only use the bottom lane, see if we can simplify this to extract_subvector - which is always at least as quick as PERMPD/PERMQ.

llvm-svn: 364518
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/var-permute-128.ll
llvm/test/CodeGen/X86/vector-shuffle-256-v16.ll
llvm/test/CodeGen/X86/vector-shuffle-512-v32.ll
llvm/test/CodeGen/X86/vector-shuffle-v48.ll