[m-dev.] for review: only apply LCO if it results in a tail call

Fergus Henderson fjh at cs.mu.OZ.AU
Thu May 27 20:01:19 AEST 1999


On 25-May-1999, David Overton <dmo at cs.mu.OZ.AU> wrote:
> compiler/lco.m:
> 	While running the LCO optimisation, check whether it actually
> 	results in a tail call and only use the transformed procedure
> 	if it does.
> 	A tail call only occurs if the top_out arguments of both
> 	procedures are in the same locations.

That one looks OK to me.

-- 
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.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list