Unit at time compilation mode II

Richard Henderson rth@redhat.com
Wed Feb 12 00:16:00 GMT 2003


On Tue, Feb 11, 2003 at 10:57:17PM +0100, Jan Hubicka wrote:
> I hope it is not too serious in this case as I am walking across
> functions there should not be that many of them to make this matter.

Huh?  You're walking across all functions in the compilation unit.
There can be thousands of them.

> I can definitly split out the first loop into something like
> cgraph_mark_functions_to_output
> but the rest is basically toplogical sorting algorithm except for the
> expanding code itself, that can be cgraph_expand_function.
> Does that seem enought?

I'd split into marking and sorting.


r~



More information about the Gcc-patches mailing list