[PATCH] D87101: [X86] Update SSE/AVX ABS intrinsics to emit llvm.abs.* (PR46851)

Simon Pilgrim via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 3 10:43:43 PDT 2020


RKSimon created this revision.
RKSimon added reviewers: craig.topper, spatel, nikic, lebedev.ri.
Herald added projects: clang, LLVM.
Herald added a subscriber: llvm-commits.
RKSimon requested review of this revision.

We're now getting close to having the necessary analysis/combines etc. for the new generic llvm.abs.* intrinsics.

This patch updates the SSE/AVX ABS intrinsics to emit the generic equivalents instead of the icmp+sub+select code pattern.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87101

Files:
  clang/lib/CodeGen/CGBuiltin.cpp
  clang/test/CodeGen/avx2-builtins.c
  clang/test/CodeGen/avx512bw-builtins.c
  clang/test/CodeGen/avx512f-builtins.c
  clang/test/CodeGen/avx512vl-builtins.c
  clang/test/CodeGen/avx512vlbw-builtins.c
  clang/test/CodeGen/ssse3-builtins.c
  llvm/test/CodeGen/X86/avx2-intrinsics-fast-isel.ll
  llvm/test/CodeGen/X86/ssse3-intrinsics-fast-isel.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87101.289762.patch
Type: text/x-patch
Size: 30775 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200903/fd51b36c/attachment-0001.bin>


More information about the cfe-commits mailing list