[all-commits] [llvm/llvm-project] 6aff13: [X86] Always assign reassoc flag for intrinsics *r...

Pengfei Wang via All-commits all-commits at lists.llvm.org
Mon Feb 15 17:27:34 PST 2021


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

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Headers/avx512fintrin.h
    M clang/test/CodeGen/X86/avx512-reduceIntrin.c

  Log Message:
  -----------
  [X86] Always assign reassoc flag for intrinsics *reduce_add/mul_ps/pd.

Intrinsics *reduce_add/mul_ps/pd have assumption that the elements in
the vector are reassociable. So we need to always assign the reassoc
flag when we call _mm_reduce_* intrinsics.

Reviewed By: spatel

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

(cherry picked from commit dd2460ed5d77d908327ce29a15630cd3268bd76e)




More information about the All-commits mailing list