Commit f2ca11ca by Richard Guenther Committed by Richard Biener

re PR tree-optimization/47890 (internal compiler error: in…

re PR tree-optimization/47890 (internal compiler error: in vect_get_vec_def_for_stmt_copy, at tree-vect-stmts.c:1186)

2011-03-01  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/47890
	* tree-vect-loop.c (get_initial_def_for_induction): Set
	related stmt properly.

	* gcc.dg/torture/pr47890.c: New testcase.

From-SVN: r170593
parent 7a00d9ea
2011-03-01 Richard Guenther <rguenther@suse.de>
PR tree-optimization/47890
* tree-vect-loop.c (get_initial_def_for_induction): Set
related stmt properly.
2011-03-01 Richard Guenther <rguenther@suse.de>
PR lto/47924
* lto-streamer.c (lto_record_common_node): Also register
the canonical type.
......
2011-03-01 Richard Guenther <rguenther@suse.de>
PR tree-optimization/47890
* gcc.dg/torture/pr47890.c: New testcase.
2011-03-01 Richard Guenther <rguenther@suse.de>
PR lto/47924
* gcc.dg/lto/pr47924_0.c: New testcase.
......
/* { dg-do compile } */
void f(char *s)
{
signed short i;
for (i = 0; i < 19; i = i + 1)
s[i] = i;
}
......@@ -2886,6 +2886,10 @@ get_initial_def_for_induction (gimple iv_phi)
gimple_assign_set_lhs (new_stmt, induc_def);
si = gsi_start_bb (bb);
gsi_insert_before (&si, new_stmt, GSI_SAME_STMT);
set_vinfo_for_stmt (new_stmt,
new_stmt_vec_info (new_stmt, loop_vinfo, NULL));
STMT_VINFO_RELATED_STMT (vinfo_for_stmt (new_stmt))
= STMT_VINFO_RELATED_STMT (vinfo_for_stmt (induction_phi));
}
return induc_def;
......
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