* tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.

From-SVN: r247887
This commit is contained in:
Bin Cheng 2017-05-11 09:36:05 +00:00 committed by Bin Cheng
parent c544114fde
commit 3770871408
2 changed files with 7 additions and 10 deletions

View File

@ -1,3 +1,7 @@
2017-05-11 Bin Cheng <bin.cheng@arm.com>
* tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
2017-05-11 Bin Cheng <bin.cheng@arm.com>
* tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more

View File

@ -5229,19 +5229,12 @@ static bool
autoinc_possible_for_pair (struct ivopts_data *data, struct iv_use *use,
struct iv_cand *cand)
{
bitmap inv_vars;
bool can_autoinc;
comp_cost cost;
if (use->type != USE_ADDRESS)
return false;
cost = get_computation_cost (data, use, cand, true, &inv_vars,
&can_autoinc, NULL);
BITMAP_FREE (inv_vars);
return !cost.infinite_cost_p () && can_autoinc;
bool can_autoinc = false;
get_computation_cost (data, use, cand, true, NULL, &can_autoinc, NULL);
return can_autoinc;
}
/* Examine IP_ORIGINAL candidates to see if they are incremented next to a