diff options
author | Uros Bizjak <uros@gcc.gnu.org> | 2016-10-06 16:57:41 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2016-10-06 16:57:41 +0200 |
commit | 63656b8da287658256ad6d6883b9da1b0f59e900 (patch) | |
tree | 052b26e60d0b90cce60d4ee7997490ba67cae7ae /gcc/config | |
parent | 271319ae2b889663579c2902f768f5e5e95394ab (diff) | |
download | gcc-63656b8da287658256ad6d6883b9da1b0f59e900.zip gcc-63656b8da287658256ad6d6883b9da1b0f59e900.tar.gz gcc-63656b8da287658256ad6d6883b9da1b0f59e900.tar.bz2 |
* config/i386/i386.c (ix86_add_stmt_cost): Simplify condition.
From-SVN: r240835
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/i386.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 5d0917a..027e84d 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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) for Silvermont as it has out of order integer pipeline and can execute 2 scalar instruction per tick, but has in order SIMD pipeline. */ - if (TARGET_SILVERMONT || TARGET_INTEL) - if (stmt_info && stmt_info->stmt) - { - tree lhs_op = gimple_get_lhs (stmt_info->stmt); - if (lhs_op && TREE_CODE (TREE_TYPE (lhs_op)) == INTEGER_TYPE) - retval = (retval * 17) / 10; - } + if ((TARGET_SILVERMONT || TARGET_INTEL) + && stmt_info && stmt_info->stmt) + { + tree lhs_op = gimple_get_lhs (stmt_info->stmt); + if (lhs_op && TREE_CODE (TREE_TYPE (lhs_op)) == INTEGER_TYPE) + retval = (retval * 17) / 10; + } cost[where] += retval; |