Commit c4a4d1a0 by Uros Bizjak Committed by Uros Bizjak

re PR tree-optimization/30938 (Bootstrap fails on x86_64 for -ftree-vectorize)

        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
parent 7f0248d7
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> 2007-02-25 Ulrich Weigand <uweigand@de.ibm.com>
* reload.c (find_reloads_address_1): Handle PLUS expressions resulting * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
......
...@@ -1844,7 +1844,7 @@ vectorizable_call (tree stmt, block_stmt_iterator *bsi, tree *vec_stmt) ...@@ -1844,7 +1844,7 @@ vectorizable_call (tree stmt, block_stmt_iterator *bsi, tree *vec_stmt)
} }
rhs_type = TREE_TYPE (op); 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)) if (vect_print_dump_info (REPORT_DETAILS))
fprintf (vect_dump, "use not simple."); fprintf (vect_dump, "use not simple.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment