[PATCH] D12143: [X86][AVX2] Replace avx2.pbroadcast / avx2.vbroadcast intrinsics usage in avx2intrin.h with __builtin_shufflevector

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 19 04:13:27 PDT 2015


RKSimon created this revision.
RKSimon added reviewers: qcolombet, craig.topper, ab, spatel, silvas.
RKSimon added a subscriber: cfe-commits.
RKSimon set the repository for this revision to rL LLVM.

Sister patch to D10555

As discussed on D10555, this patch replaces the use of the avx2.vbroadcast (float) and avx2.pbroadcast (integer) broadcast intrinsics in avx2intrin.h with generic __builtin_shufflevector calls.

At present all these changes still result in the expected vbroadcast/vpbroadcast instructions in debug code. I can add a test that ensures this if people wish but the conclusion on the discussion thread was that this shouldn't be considered vital.

Repository:
  rL LLVM

http://reviews.llvm.org/D12143

Files:
  lib/Headers/avx2intrin.h
  test/CodeGen/avx2-builtins.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12143.32531.patch
Type: text/x-patch
Size: 7034 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150819/43d33ae2/attachment.bin>


More information about the cfe-commits mailing list