]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/30938 (Bootstrap fails on x86_64 for -ftree-vectorize)
authorUros Bizjak <ubizjak@gmail.com>
Sun, 25 Feb 2007 23:18:45 +0000 (00:18 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Sun, 25 Feb 2007 23:18:45 +0000 (00:18 +0100)
        PR tree-optimization/30938
        * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
        use &dt[nargs-1] instead of &dt[nargs] in the call to
        vect_is_simple_use().

From-SVN: r122323

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

index 2ed49124480c1babcefbae2c20c2407ac7cdfe20..118559971fb94ba39489390a0b83926c17770260 100644 (file)
@@ -1,3 +1,10 @@
+2007-02-25  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR tree-optimization/30938
+       * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
+       use &dt[nargs-1] instead of &dt[nargs] in the call to
+       vect_is_simple_use().
+
 2007-02-25  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
index 09f1993ac39dd26d59da29e9c6476cd0f1c33c66..4a63a3c18f73307a64794dad45dd3aa723904b5b 100644 (file)
@@ -1844,7 +1844,7 @@ vectorizable_call (tree stmt, block_stmt_iterator *bsi, tree *vec_stmt)
        }
       rhs_type = TREE_TYPE (op);
 
-      if (!vect_is_simple_use (op, loop_vinfo, &def_stmt, &def, &dt[nargs]))
+      if (!vect_is_simple_use (op, loop_vinfo, &def_stmt, &def, &dt[nargs-1]))
        {
          if (vect_print_dump_info (REPORT_DETAILS))
            fprintf (vect_dump, "use not simple.");