i386.c (ix86_add_stmt_cost): When scalar cost is asked for initialize mode to the component mode of the...
2018-10-05 Richard Biener <rguenther@suse.de> * config/i386/i386.c (ix86_add_stmt_cost): When scalar cost is asked for initialize mode to the component mode of the vector type. From-SVN: r264866
This commit is contained in:
parent
ae36de9153
commit
3f41c986d2
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2018-10-05 Richard Biener <rguenther@suse.de>
|
||||
|
||||
* config/i386/i386.c (ix86_add_stmt_cost): When scalar cost
|
||||
is asked for initialize mode to the component mode of the
|
||||
vector type.
|
||||
|
||||
2018-10-05 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR target/87522
|
||||
|
|
|
@ -49486,17 +49486,21 @@ ix86_add_stmt_cost (void *data, int count, enum vect_cost_for_stmt kind,
|
|||
{
|
||||
unsigned *cost = (unsigned *) data;
|
||||
unsigned retval = 0;
|
||||
bool scalar_p
|
||||
= (kind == scalar_stmt || kind == scalar_load || kind == scalar_store);
|
||||
|
||||
tree vectype = stmt_info ? stmt_vectype (stmt_info) : NULL_TREE;
|
||||
int stmt_cost = - 1;
|
||||
|
||||
bool fp = false;
|
||||
machine_mode mode = TImode;
|
||||
machine_mode mode = scalar_p ? SImode : TImode;
|
||||
|
||||
if (vectype != NULL)
|
||||
{
|
||||
fp = FLOAT_TYPE_P (vectype);
|
||||
mode = TYPE_MODE (vectype);
|
||||
if (scalar_p)
|
||||
mode = TYPE_MODE (TREE_TYPE (vectype));
|
||||
}
|
||||
|
||||
if ((kind == vector_stmt || kind == scalar_stmt)
|
||||
|
|
Loading…
Add table
Reference in a new issue