]> granicus.if.org Git - llvm/commit
X86: Don't drop half of the mask when converting 2-address shufps into 3-address...
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 5 Oct 2014 16:14:29 +0000 (16:14 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 5 Oct 2014 16:14:29 +0000 (16:14 +0000)
commit88b3a52eec10b54e1bae916354ed1226a3d438f3
treed1dd43a99e68646432c067e7101471db69351b57
parenta0cb2c75b018c40e722667e28b1507fb0fe95810
X86: Don't drop half of the mask when converting 2-address shufps into 3-address pshufd.

It's debatable whether this transform is useful at all, but for now make sure
we don't generate invalid asm.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219084 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
test/CodeGen/X86/3addr-shufps.ll [new file with mode: 0644]