[all-commits] [llvm/llvm-project] 9eab73: [X86] Update SSE/AVX integer MINMAX intrinsics to ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Sep 15 03:20:42 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9eab73fa17f5920178a87ee8a5021f4fd6f0f5ef
      https://github.com/llvm/llvm-project/commit/9eab73fa17f5920178a87ee8a5021f4fd6f0f5ef
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-09-15 (Tue, 15 Sep 2020)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/test/CodeGen/X86/avx2-builtins.c
    M clang/test/CodeGen/X86/avx512-reduceMinMaxIntrin.c
    M clang/test/CodeGen/X86/avx512bw-builtins.c
    M clang/test/CodeGen/X86/avx512f-builtins.c
    M clang/test/CodeGen/X86/avx512vl-builtins.c
    M clang/test/CodeGen/X86/avx512vlbw-builtins.c
    M clang/test/CodeGen/X86/sse2-builtins.c
    M clang/test/CodeGen/X86/sse41-builtins.c
    M llvm/lib/IR/AutoUpgrade.cpp
    M llvm/test/CodeGen/X86/avx2-intrinsics-fast-isel.ll
    M llvm/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll
    M llvm/test/CodeGen/X86/sse41-intrinsics-fast-isel.ll

  Log Message:
  -----------
  [X86] Update SSE/AVX integer MINMAX intrinsics to emit llvm.smax.* etc. (PR46851)

We're now getting close to having the necessary analysis/combines etc. for the new generic llvm smax/smin/umax/umin intrinsics.

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

Differential Revision: https://reviews.llvm.org/D87603




More information about the All-commits mailing list