aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-stmts.c
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>2010-10-15 17:42:05 +0000
committerMichael Meissner <meissner@gcc.gnu.org>2010-10-15 17:42:05 +0000
commit1b1562a55947daed482e2d8ef47a4f577397beb9 (patch)
tree5a6ace72e7cb1c4c33366822e3836c93b74e3f78 /gcc/tree-vect-stmts.c
parente74bf53a08b08e94ef88b0e1b0401e393efb1dac (diff)
downloadgcc-1b1562a55947daed482e2d8ef47a4f577397beb9.zip
gcc-1b1562a55947daed482e2d8ef47a4f577397beb9.tar.gz
gcc-1b1562a55947daed482e2d8ef47a4f577397beb9.tar.bz2
Add fma support
From-SVN: r165515
Diffstat (limited to 'gcc/tree-vect-stmts.c')
-rw-r--r--gcc/tree-vect-stmts.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c
index 6d0c112..63af34e 100644
--- a/gcc/tree-vect-stmts.c
+++ b/gcc/tree-vect-stmts.c
@@ -1357,10 +1357,10 @@ vectorizable_call (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt)
vectype_in = NULL_TREE;
nargs = gimple_call_num_args (stmt);
- /* Bail out if the function has more than two arguments, we
- do not have interesting builtin functions to vectorize with
- more than two arguments. No arguments is also not good. */
- if (nargs == 0 || nargs > 2)
+ /* Bail out if the function has more than three arguments, we do not have
+ interesting builtin functions to vectorize with more than two arguments
+ except for fma. No arguments is also not good. */
+ if (nargs == 0 || nargs > 3)
return false;
for (i = 0; i < nargs; i++)