> So I get in stderr:
> ,----
> | g (nD.1176)
> | {
> | <bb 2>:
> | Invalid sum of outgoing probabilities 0.0%
> | goto <bb 6>;
> |
> | Invalid sum of incoming frequencies 0, should be 4600
> | <L0>:;
> | f (&"1"[0]);
> | goto <bb 5>;
> |
> | Invalid sum of incoming frequencies 0, should be 5400
> | <L1>:;
> | f (&"default"[0]);
> |
> | <bb 5>:
> | return;
> |
> | <bb 6>:
> | Invalid sum of outgoing probabilities 0.0%
> | if (n_1(D) == 1)
> | goto <bb 3> (<L0>);
> | else
> | goto <bb 4> (<L1>);
> |
> | }
> |
> |
> | test1.c: In function 'g':
> | test1.c:7: error: dominator of 3 should be 6, not 2
> | test1.c:7: error: dominator of 4 should be 6, not 2
> | test1.c:7: error: dominator of 5 should be 6, not 2
> | test1.c:7: error: dominator of 6 status unknown
> | test1.c:7: internal compiler error: Segmentation fault
> `----
>
> The frequencies should be updated by the TODO so I am not worried.
TODO_rebuild_frequencies only propagate probabilities into frequencies, so when
you don't
have probabilities set, it won't help you.
If you just create such a simple conrolled functions, I guess it is best to just
assign frequencies and probabilities by hand.
Honza
> How can I automatically update dominators? Or do I have to do it for
> each new basic_block I create with recompute_dominator?
>
> Cheers,
>
> --
> PMatos