Commit 95d938ee by Richard Guenther Committed by Richard Biener

tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate constants everywhere.

2010-04-07  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-forwprop.c (forward_propagate_addr_expr):
	Propagate constants everywhere.

From-SVN: r158063
parent 1a299ae4
2010-04-07 Richard Guenther <rguenther@suse.de>
* tree-ssa-forwprop.c (forward_propagate_addr_expr):
Propagate constants everywhere.
2010-04-07 Jakub Jelinek <jakub@redhat.com>
PR debug/43516
......
......@@ -955,9 +955,10 @@ forward_propagate_addr_expr (tree name, tree rhs)
}
/* If the use is in a deeper loop nest, then we do not want
to propagate the ADDR_EXPR into the loop as that is likely
adding expression evaluations into the loop. */
if (gimple_bb (use_stmt)->loop_depth > stmt_loop_depth)
to propagate non-invariant ADDR_EXPRs into the loop as that
is likely adding expression evaluations into the loop. */
if (gimple_bb (use_stmt)->loop_depth > stmt_loop_depth
&& !is_gimple_min_invariant (rhs))
{
all = false;
continue;
......
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