aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-loop.cc
diff options
context:
space:
mode:
authorliuhongt <hongtao.liu@intel.com>2024-04-19 10:39:53 +0800
committerliuhongt <hongtao.liu@intel.com>2024-06-06 08:35:40 +0800
commit961dd0d635217c703a38c48903981e0d60962546 (patch)
tree5ffd95592723f6f27ce8c9dbe686d76670554c72 /gcc/tree-vect-loop.cc
parent7876cde25cbd2f026a0ae488e5263e72f8e9bfa0 (diff)
downloadgcc-961dd0d635217c703a38c48903981e0d60962546.zip
gcc-961dd0d635217c703a38c48903981e0d60962546.tar.gz
gcc-961dd0d635217c703a38c48903981e0d60962546.tar.bz2
Adjust rtx_cost for MEM to enable more simplication
For CONST_VECTOR_DUPLICATE_P in constant_pool, it is just broadcast or variants in ix86_vector_duplicate_simode_const. Adjust the cost to COSTS_N_INSNS (2) + speed which should be a little bit larger than broadcast. gcc/ChangeLog: PR target/114428 * config/i386/i386.cc (ix86_rtx_costs): Adjust cost for CONST_VECTOR_DUPLICATE_P in constant_pool. * config/i386/i386-expand.cc (ix86_broadcast_from_constant): Remove static. * config/i386/i386-protos.h (ix86_broadcast_from_constant): Declare. gcc/testsuite/ChangeLog: * gcc.target/i386/pr114428.c: New test.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions