Commit 524c2492 by Richard Biener Committed by Richard Biener

tree-ssa-loop-im.c (determine_max_movement): Properly add condition cost to PHI…

tree-ssa-loop-im.c (determine_max_movement): Properly add condition cost to PHI cost instead of total_cost.

2016-05-18  Richard Biener  <rguenther@suse.de>

	* tree-ssa-loop-im.c (determine_max_movement): Properly add
	condition cost to PHI cost instead of total_cost.

From-SVN: r236376
parent cf087b41
2016-05-18 Richard Biener <rguenther@suse.de>
* tree-ssa-loop-im.c (determine_max_movement): Properly add
condition cost to PHI cost instead of total_cost.
2016-05-18 Martin Liska <mliska@suse.cz>
PR fortran/70856
......
......@@ -717,7 +717,7 @@ determine_max_movement (gimple *stmt, bool must_preserve_exec)
return false;
def_data = get_lim_data (SSA_NAME_DEF_STMT (val));
if (def_data)
total_cost += def_data->cost;
lim_data->cost += def_data->cost;
}
/* We want to avoid unconditionally executing very expensive
......
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