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

Pengfei Wang via All-commits all-commits at lists.llvm.org
Tue Feb 9 05:14:40 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dd2460ed5d77d908327ce29a15630cd3268bd76e
      https://github.com/llvm/llvm-project/commit/dd2460ed5d77d908327ce29a15630cd3268bd76e
  Author: Wang, Pengfei <pengfei.wang at intel.com>
  Date:   2021-02-09 (Tue, 09 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




More information about the All-commits mailing list