+2015-10-29 Bin Cheng <bin.cheng@arm.com>
+
+ * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
+ (get_computation_cost_at): Ditto.
+ (determine_use_iv_cost_address): Pass NULL for arguments depends_on
+ and inv_expr_id.
+
2015-10-28 Tom de Vries <tom@codesourcery.com>
* tree-ssa-structalias.c (intra_create_variable_infos): Remove
*symbol_present = false;
*var_present = true;
fd_ivopts_data = data;
- walk_tree (&addr, find_depends, depends_on, NULL);
+ if (depends_on)
+ walk_tree (&addr, find_depends, depends_on, NULL);
+
return new_cost (target_spill_cost[data->speed], 0);
}
? TYPE_MODE (TREE_TYPE (*use->op_p))
: VOIDmode);
- *depends_on = NULL;
+ if (depends_on)
+ *depends_on = NULL;
/* Only consider real candidates. */
if (!cand->iv)
sub_use && !infinite_cost_p (cost);
sub_use = sub_use->next)
{
- sub_cost = get_computation_cost (data, sub_use, cand, true, &depends_on,
- &can_autoinc, &inv_expr_id);
- cost = add_costs (cost, sub_cost);
+ sub_cost = get_computation_cost (data, sub_use, cand, true, NULL,
+ &can_autoinc, NULL);
+ cost = add_costs (cost, sub_cost);
}
set_use_iv_cost (data, use, cand, cost, depends_on, NULL_TREE, ERROR_MARK,