[PATCH] D46742: [X86] Use __builtin_convertvector to replace some of the avx512 truncate builtins.

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 10 23:44:11 PDT 2018


craig.topper created this revision.
craig.topper added reviewers: RKSimon, GBuella, tkrupa.

As long as the destination type is a 256 or 128 bit vector we can use __builtin_convertvector to directly generate trunc IR instruction which will be handled natively by the backend.


Repository:
  rC Clang

https://reviews.llvm.org/D46742

Files:
  include/clang/Basic/BuiltinsX86.def
  lib/Headers/avx512bwintrin.h
  lib/Headers/avx512fintrin.h
  lib/Headers/avx512vlbwintrin.h
  lib/Headers/avx512vlintrin.h
  test/CodeGen/avx512bw-builtins.c
  test/CodeGen/avx512f-builtins.c
  test/CodeGen/avx512vl-builtins.c
  test/CodeGen/avx512vlbw-builtins.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46742.146286.patch
Type: text/x-patch
Size: 23267 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180511/00b68b9c/attachment-0001.bin>


More information about the cfe-commits mailing list