diff options
author | liuhongt <hongtao.liu@intel.com> | 2023-12-13 11:20:46 +0800 |
---|---|---|
committer | liuhongt <hongtao.liu@intel.com> | 2023-12-14 16:40:06 +0800 |
commit | be0ff0866a6f072ccfbbb3a3c2079adf1db51aa1 (patch) | |
tree | 9eefb522c1a9e6f347c49fc03916a3d989717a1b /gcc/tree-pass.h | |
parent | e9f0af150358d93b4c4c5f65d662748ae87bd3d0 (diff) | |
download | gcc-be0ff0866a6f072ccfbbb3a3c2079adf1db51aa1.zip gcc-be0ff0866a6f072ccfbbb3a3c2079adf1db51aa1.tar.gz gcc-be0ff0866a6f072ccfbbb3a3c2079adf1db51aa1.tar.bz2 |
Force broadcast constant to mem for vec_dup{v4di,v8si,v4df,v8df} when TARGET_AVX2 is not available.
vpbroadcastd/vpbroadcastq is avaiable under TARGET_AVX2, but
vec_dup{v4di,v8si} pattern is avaiable under AVX with memory operand.
And it will cause LRA/Reload to generate spill and reload if we put
constant in register.
gcc/ChangeLog:
PR target/112992
* config/i386/i386-expand.cc
(ix86_convert_const_wide_int_to_broadcast): Don't convert to
broadcast for vec_dup{v4di,v8si} when TARGET_AVX2 is not
available.
(ix86_broadcast_from_constant): Allow broadcast for V4DI/V8SI
when !TARGET_AVX2 since it will be forced to memory later.
(ix86_expand_vector_move): Force constant to mem for
vec_dup{vssi,v4di} when TARGET_AVX2 is not available.
gcc/testsuite/ChangeLog:
* gcc.target/i386/pr100865-7a.c: Adjust testcase.
* gcc.target/i386/pr100865-7c.c: Ditto.
* gcc.target/i386/pr112992.c: New test.
Diffstat (limited to 'gcc/tree-pass.h')
0 files changed, 0 insertions, 0 deletions