[X86][SSE] canonicalizeShuffleWithBinOps - add X86ISD::PSHUFB handling.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 15 Mar 2021 12:38:03 +0000 (12:38 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 15 Mar 2021 12:43:30 +0000 (12:43 +0000)
commit07232f4507e8ba19b414d15273ef3ac53a66bc1f
treea6dda5e2e66862d240061f15aa3a0a85213d0133
parent0fb4a201c098c38e6b95196b718a24ee33119d2a
[X86][SSE] canonicalizeShuffleWithBinOps - add X86ISD::PSHUFB handling.

Recommit rGcd938ab162b0ac560dd0e9fee290980c7e0e47e5 with an early-out if the pshub would introduce zeros across the binop.
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/vector-fshr-rot-128.ll
llvm/test/CodeGen/X86/vector-shift-ashr-128.ll
llvm/test/CodeGen/X86/vector-shift-lshr-128.ll