[X86] Always assign reassoc flag for intrinsics *reduce_add/mul_ps/pd.
authorWang, Pengfei <pengfei.wang@intel.com>
Tue, 9 Feb 2021 13:12:59 +0000 (21:12 +0800)
committerWang, Pengfei <pengfei.wang@intel.com>
Tue, 9 Feb 2021 13:14:06 +0000 (21:14 +0800)
commitdd2460ed5d77d908327ce29a15630cd3268bd76e
treeb3337f8593961432a6b2c76294edd3ff99883b9e
parenta5222aa0858a42660629c410a5b669dee16a4359
[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
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/Headers/avx512fintrin.h
clang/test/CodeGen/X86/avx512-reduceIntrin.c