[m-dev.] for review: turn off stack optimizations for .agc

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Jun 16 16:40:30 AEST 1998


On 16-Jun-1998, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> On 15-Jun-1998, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> > The pattern list ought to be computed once, either
> > in peephole.m or in handle_options.m.
> 
> I've fixed this by putting it in peephole, and making GC_Method one
> of the arguments to peephole__optimize.
> 
> Here's the new diff (for completeness).  I'll commit this soon.
...
> -:- pred peephole__optimize(list(instruction), list(instruction), bool).
> -:- mode peephole__optimize(in, out, out) is det.
> +	% Peephole optimize a list of instructions.  The given list of
> +	% patterns are not optimized.
> +
> +:- pred peephole__optimize(gc_method, list(instruction), list(instruction),
> +		bool).
> +:- mode peephole__optimize(in, in, out, out) is det.

You should update the comment.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.



More information about the developers mailing list