[X86] Lower insertions into upper half of an 256-bit vector as broadcast+blend (PR50971)
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 17 Aug 2021 15:42:22 +0000 (18:42 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 17 Aug 2021 15:45:10 +0000 (18:45 +0300)
commit2078c4ecfda80f802febc4f98e4a163656093c43
treefe3bdf1cc88336a85f030b7fb4b1fca4105d8b57
parent0f1e67fac24b7cb49c3e4feeeadf536d27d1473d
[X86] Lower insertions into upper half of an 256-bit vector as broadcast+blend (PR50971)

Broadcast is not worse than extract+insert of subvector.
https://godbolt.org/z/aPq98G6Yh

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D105390
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/avx-insertelt.ll
llvm/test/CodeGen/X86/avx2-masked-gather.ll
llvm/test/CodeGen/X86/avx512-insert-extract.ll
llvm/test/CodeGen/X86/avx512-masked-memop-64-32.ll
llvm/test/CodeGen/X86/insertelement-shuffle.ll
llvm/test/CodeGen/X86/masked_expandload.ll
llvm/test/CodeGen/X86/masked_gather.ll
llvm/test/CodeGen/X86/masked_gather_scatter.ll
llvm/test/CodeGen/X86/masked_load.ll