This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r278121 - in /trunk/gcc: ChangeLog tree-vect-st...
- From: rsandifo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 13 Nov 2019 09:00:53 -0000
- Subject: r278121 - in /trunk/gcc: ChangeLog tree-vect-st...
Author: rsandifo
Date: Wed Nov 13 09:00:53 2019
New Revision: 278121
URL: https://gcc.gnu.org/viewcvs?rev=278121&root=gcc&view=rev
Log:
Fix vectorizable_conversion costs
This patch makes two tweaks to vectorizable_conversion. The first
is to use "modifier" to distinguish between promotion, demotion,
and neither promotion nor demotion, rather than using a code for
some cases and "modifier" for others. The second is to take ncopies
into account for the promotion and demotion costs; previously we gave
multiple copies the same cost as a single copy.
Later patches test this, but it seemed worth splitting out.
2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
number of ncopies as an additional argument.
(vectorizable_conversion): Update call accordingly. Use "modifier"
to check whether a conversion is between vectors with the same
numbers of units.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-vect-stmts.c