[PATCH] D109434: [X86][AVX] Add missing X86ISD::VBROADCAST(128->256) isel patterns for AVX1 targets

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 8 05:43:36 PDT 2021


RKSimon created this revision.
RKSimon added reviewers: yubing, pengfei, LuoYuanke, lebedev.ri, spatel.
Herald added a subscriber: hiraditya.
RKSimon requested review of this revision.
Herald added a project: LLVM.

An alternative to D109348 <https://reviews.llvm.org/D109348>, this adds fallback broadcast patterns on AVX1 targets instead.

I've added AVX2 test coverage to help show a missing fold - where the vbroadcastsd_ymm(vbroadcastss_load_xmm()) should be foldable to a single vbroadcastss_load_ymm() on AVX1 and AVX2 targets if we create the broadcast nodes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D109434

Files:
  llvm/lib/Target/X86/X86InstrSSE.td
  llvm/test/CodeGen/X86/combine-concatvectors.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109434.371322.patch
Type: text/x-patch
Size: 6172 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210908/783c40a0/attachment.bin>


More information about the llvm-commits mailing list