PATCH: insn-attrtab vs. VM usage

Richard Henderson rth@cygnus.com
Mon Oct 25 13:32:00 GMT 1999


On Mon, Oct 25, 1999 at 01:21:36PM -0500, Robert Lipe wrote:
>  * gcse.c (expr_reaches_here_p): Use gmalloc and explit free instead
>  of alloca.

What in the world is gmalloc.  Don't you mean xmalloc?

> +      visited = (char *) gmalloc (n_basic_blocks);
>        bzero (visited, n_basic_blocks);

Anyway, this pair is xcalloc.

> +pre_expr_reaches_here_p_work (occr_bb, expr, bb, check_pre_comp, visited)

Make the recursive calls use pre_expr_reaches_here_p_work too.

> +      visited = (char *) gmalloc (n_basic_blocks);
> +      visited_allocated_locally = 1;
> +      bzero (visited, n_basic_blocks);

xcalloc again.

> +  index_map = (struct expr **) gmalloc (n_exprs * sizeof (struct expr *));
>    bzero ((char *) index_map, n_exprs * sizeof (struct expr *));

Again.

> +      visited = (char *) gmalloc (n_basic_blocks);
> +      visited_allocated_locally = 1;
>        bzero (visited, n_basic_blocks);

Again.

> +  index_map = (struct expr **) gmalloc (n_exprs * sizeof (struct expr *));
>    bzero ((char *) index_map, n_exprs * sizeof (struct expr *));

Again.



r~


More information about the Gcc-patches mailing list