re PR tree-optimization/46142 (FMA test failures)
authorUros Bizjak <ubizjak@gmail.com>
Sun, 31 Oct 2010 07:18:07 +0000 (08:18 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Sun, 31 Oct 2010 07:18:07 +0000 (08:18 +0100)
PR tree-optimization/46142
* tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
accommodate third function argument.

From-SVN: r166105

gcc/ChangeLog
gcc/tree-vect-stmts.c

index c2b0142585e2ac5f6c73c2359cdbf78910e56748..13292d42f41d28cc3ca91d2b7d06a763177814aa 100644 (file)
@@ -1,3 +1,9 @@
+2010-10-31  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR tree-optimization/46142
+       * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
+       accommodate third function argument.
+
 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
 
        * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
index 6f4f56861d0b8c9dd08af36c276a98510ec55460..67e9e2bc445bb13c79910f5e730b3e204d2b0599 100644 (file)
@@ -1308,7 +1308,8 @@ vectorizable_call (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt)
   loop_vec_info loop_vinfo = STMT_VINFO_LOOP_VINFO (stmt_info);
   tree fndecl, new_temp, def, rhs_type;
   gimple def_stmt;
-  enum vect_def_type dt[2] = {vect_unknown_def_type, vect_unknown_def_type};
+  enum vect_def_type dt[3]
+    = {vect_unknown_def_type, vect_unknown_def_type, vect_unknown_def_type};
   gimple new_stmt = NULL;
   int ncopies, j;
   VEC(tree, heap) *vargs = NULL;