Commit 7d27b70b by Bin Cheng Committed by Bin Cheng

tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): Handle boundary case…

tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): Handle boundary case for the last candidate.

	* tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): Handle
	boundary case for the last candidate.

From-SVN: r250960
parent 5a115661
2017-08-08 Bin Cheng <bin.cheng@arm.com>
* tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): Handle
boundary case for the last candidate.
2017-08-08 Bin Cheng <bin.cheng@arm.com>
* doc/invoke.texi: Document -ftree-loop-distribution for O3.
* opts.c (default_options_table): Add OPT_ftree_loop_distribution.
......
......@@ -5284,13 +5284,13 @@ set_autoinc_for_original_candidates (struct ivopts_data *data)
static void
relate_compare_use_with_all_cands (struct ivopts_data *data)
{
unsigned i, max_id = data->vcands.length () - 1;
unsigned i, count = data->vcands.length ();
for (i = 0; i < data->vgroups.length (); i++)
{
struct iv_group *group = data->vgroups[i];
if (group->type == USE_COMPARE)
bitmap_set_range (group->related_cands, 0, max_id);
bitmap_set_range (group->related_cands, 0, count);
}
}
......
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