- gcov_type count_in, count_latch;
-
- count_in = 0;
- count_latch = 0;
-
- FOR_EACH_EDGE (e, ei, loop->header->preds)
- if (e->src == loop->latch)
- count_latch = e->count;
- else
- count_in += e->count;
-
- if (count_in == 0)
- expected = count_latch * 2;
- else
- expected = (count_latch + count_in - 1) / count_in;