Commit f8f42513 by Martin Jambor Committed by Martin Jambor

tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements with no…

tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements with no initialization to the RHS of debug statements.

2013-02-28  Martin Jambor  <mjambor@suse.cz>

	* tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
	with no initialization to the RHS of debug statements.

From-SVN: r196341
parent b48b3fc4
2013-02-28 Martin Jambor <mjambor@suse.cz>
* tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
with no initialization to the RHS of debug statements.
2013-02-28 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/56294
* tree-sra.c (analyze_access_subtree): Create replacement declarations.
Adjust dumping.
......
......@@ -2870,7 +2870,12 @@ load_assign_lhs_subreplacements (struct access *lacc, struct access *top_racc,
lacc->size);
if (racc && racc->grp_to_be_replaced)
drhs = get_access_replacement (racc);
{
if (racc->grp_write)
drhs = get_access_replacement (racc);
else
drhs = NULL;
}
else if (*refreshed == SRA_UDH_LEFT)
drhs = build_debug_ref_for_model (loc, lacc->base, lacc->offset,
lacc);
......
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