aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-im.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-10-20 07:57:48 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-10-20 07:57:48 +0000
commit67af611e2ef9b5d643a6f01ab1affd98f35df0c4 (patch)
treeb0c84c31a0f39f976eff0c2c59e11f247416c87d /gcc/tree-ssa-loop-im.c
parent53e7c794d188d6c8a24a07777c4c5e86a0d74374 (diff)
downloadgcc-67af611e2ef9b5d643a6f01ab1affd98f35df0c4.zip
gcc-67af611e2ef9b5d643a6f01ab1affd98f35df0c4.tar.gz
gcc-67af611e2ef9b5d643a6f01ab1affd98f35df0c4.tar.bz2
tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR and rotates to the set of expensive operations.
2011-10-20 Richard Guenther <rguenther@suse.de> * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR and rotates to the set of expensive operations. From-SVN: r180237
Diffstat (limited to 'gcc/tree-ssa-loop-im.c')
-rw-r--r--gcc/tree-ssa-loop-im.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/tree-ssa-loop-im.c b/gcc/tree-ssa-loop-im.c
index cb52791..4bc9ffd 100644
--- a/gcc/tree-ssa-loop-im.c
+++ b/gcc/tree-ssa-loop-im.c
@@ -549,6 +549,11 @@ stmt_cost (gimple stmt)
switch (gimple_assign_rhs_code (stmt))
{
case MULT_EXPR:
+ case WIDEN_MULT_EXPR:
+ case WIDEN_MULT_PLUS_EXPR:
+ case WIDEN_MULT_MINUS_EXPR:
+ case DOT_PROD_EXPR:
+ case FMA_EXPR:
case TRUNC_DIV_EXPR:
case CEIL_DIV_EXPR:
case FLOOR_DIV_EXPR:
@@ -565,6 +570,9 @@ stmt_cost (gimple stmt)
case LSHIFT_EXPR:
case RSHIFT_EXPR:
+ case WIDEN_LSHIFT_EXPR:
+ case LROTATE_EXPR:
+ case RROTATE_EXPR:
cost += 20;
break;