Widen i16 shuffle masks if vector width < 512 even with BWI
authorNoah Goldstein <goldstein.w.n@gmail.com>
Thu, 16 Feb 2023 17:57:31 +0000 (11:57 -0600)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Sun, 26 Feb 2023 18:11:16 +0000 (12:11 -0600)
commit6b6c62c75b8b5047a0def2dedcadd367a88e7002
treef122b2f9eb58ef46bbf4cdb4dc2010072068e9c8
parent7ae071f98186751627effeede9beba9df78f04ea
Widen i16 shuffle masks if vector width < 512 even with BWI

`{v}blend{d|ps|pd}` is preferable to `{v}blendw` so widen so that we
can match it.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D143789
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/combine-sdiv.ll
llvm/test/CodeGen/X86/shuffle-blendw.ll