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
This commit is contained in:
Richard Biener 2016-05-18 12:32:46 +00:00 committed by Richard Biener
parent cf087b415c
commit 524c2492c5
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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> 2016-05-18 Martin Liska <mliska@suse.cz>
PR fortran/70856 PR fortran/70856

View File

@ -717,7 +717,7 @@ determine_max_movement (gimple *stmt, bool must_preserve_exec)
return false; return false;
def_data = get_lim_data (SSA_NAME_DEF_STMT (val)); def_data = get_lim_data (SSA_NAME_DEF_STMT (val));
if (def_data) if (def_data)
total_cost += def_data->cost; lim_data->cost += def_data->cost;
} }
/* We want to avoid unconditionally executing very expensive /* We want to avoid unconditionally executing very expensive