[PATCH] D37286: [AVX512] Correct isel patterns to support selecting masked vbroadcastf32x2/vbroadi32x2

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 29 22:39:10 PDT 2017


craig.topper created this revision.

This patch adjusts the patterns to make the result type of the broadcast node vXf64/vXi64. Then adds a bitcast to vXi32 after that. Intrinsic lowering was also adjusted to generate this new pattern.

Fixes PR34357

We should probably just drop the intrinsic entirely and use native IR, but I'll leave that for a future patch.

Any idea what instruction we should be lowering the floating point 128-bit result version of this pattern to?  There's a 128-bit v2i32 integer broadcast but not an fp one.


https://reviews.llvm.org/D37286

Files:
  lib/Target/X86/X86ISelLowering.cpp
  lib/Target/X86/X86InstrAVX512.td
  test/CodeGen/X86/vector-shuffle-masked.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37286.113197.patch
Type: text/x-patch
Size: 15269 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170830/1f22710b/attachment.bin>


More information about the llvm-commits mailing list