[x86] add restriction for lowering to vpermps
authorSanjay Patel <spatel@rotateright.com>
Sun, 27 Jan 2019 21:53:33 +0000 (21:53 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 27 Jan 2019 21:53:33 +0000 (21:53 +0000)
commitebe6b43aecc7d784a66afc63d746b106052ba7e3
tree7995493ee9be9daa1ccdb7ca79c00c1d559f6005
parent816c9b3e25463d26e4bb3e0cc8889987c7af2704
[x86] add restriction for lowering to vpermps

This transform was added with rL351346, and we had
an escape for shufps, but we also want one for
unpckps vs. vpermps because vpermps doesn't take
an immediate shuffle index operand.

llvm-svn: 352333
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/vector-shuffle-128-unpck.ll