tree-optimization/73550 - apply MAX_NUM_CHAINS consistently

The MAX_NUM_CHAINS is applied once with <= and once with < which
results in the chains not limited but analyis dropped completely.
That's one issue in the PR.

	PR tree-optimization/73550
	* gimple-predicate-analysis.cc (predicate::init_from_control_deps):
	Do not apply MAX_NUM_CHAINS again.
This commit is contained in:
Richard Biener 2022-08-30 14:37:23 +02:00
parent 28b5311203
commit ce77622524

View file

@ -1674,13 +1674,6 @@ predicate::init_from_control_deps (const vec<edge> *dep_chains,
if (num_chains == 0)
return;
if (num_chains >= MAX_NUM_CHAINS)
{
if (dump_file)
fprintf (dump_file, "MAX_NUM_CHAINS exceeded: %u\n", num_chains);
return;
}
/* Convert the control dependency chain into a set of predicates. */
m_preds.reserve (num_chains);