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:
parent
cf087b415c
commit
524c2492c5
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user