mirror of git://gcc.gnu.org/git/gcc.git
* config/i386/i386.c (ix86_add_stmt_cost): Simplify condition.
From-SVN: r240835
This commit is contained in:
parent
271319ae2b
commit
63656b8da2
|
|
@ -49677,13 +49677,13 @@ ix86_add_stmt_cost (void *data, int count, enum vect_cost_for_stmt kind,
|
||||||
/* We need to multiply all vector stmt cost by 1.7 (estimated cost)
|
/* We need to multiply all vector stmt cost by 1.7 (estimated cost)
|
||||||
for Silvermont as it has out of order integer pipeline and can execute
|
for Silvermont as it has out of order integer pipeline and can execute
|
||||||
2 scalar instruction per tick, but has in order SIMD pipeline. */
|
2 scalar instruction per tick, but has in order SIMD pipeline. */
|
||||||
if (TARGET_SILVERMONT || TARGET_INTEL)
|
if ((TARGET_SILVERMONT || TARGET_INTEL)
|
||||||
if (stmt_info && stmt_info->stmt)
|
&& stmt_info && stmt_info->stmt)
|
||||||
{
|
{
|
||||||
tree lhs_op = gimple_get_lhs (stmt_info->stmt);
|
tree lhs_op = gimple_get_lhs (stmt_info->stmt);
|
||||||
if (lhs_op && TREE_CODE (TREE_TYPE (lhs_op)) == INTEGER_TYPE)
|
if (lhs_op && TREE_CODE (TREE_TYPE (lhs_op)) == INTEGER_TYPE)
|
||||||
retval = (retval * 17) / 10;
|
retval = (retval * 17) / 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
cost[where] += retval;
|
cost[where] += retval;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue