[all-commits] [llvm/llvm-project] 61da20: [X86] Convert fmin/fmax _mm_reduce_* intrinsics to...

Pengfei Wang via All-commits all-commits at lists.llvm.org
Sun Feb 14 17:16:56 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 61da20575d6c6bc72438bb3d169b4b2797e909e4
      https://github.com/llvm/llvm-project/commit/61da20575d6c6bc72438bb3d169b4b2797e909e4
  Author: Wang, Pengfei <pengfei.wang at intel.com>
  Date:   2021-02-15 (Mon, 15 Feb 2021)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsX86.def
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Headers/avx512fintrin.h
    M clang/test/CodeGen/X86/avx512-reduceMinMaxIntrin.c

  Log Message:
  -----------
  [X86] Convert fmin/fmax _mm_reduce_* intrinsics to emit llvm.reduction intrinsics (PR47506)

This is a follow up of D92940.

We have successfully converted fadd/fmul _mm_reduce_* intrinsics to
llvm.reduction + reassoc flag. We can do the same approach for fmin/fmax
too, i.e. llvm.reduction + nnan flag.

Reviewed By: spatel

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




More information about the All-commits mailing list