[m-dev.] Deforestation question

Ralph Becket rbeck at microsoft.com
Tue Feb 13 01:54:21 AEDT 2001


Say I write something like

	{X, Y} = list__foldl(func(A, {X, Y}) = {X + A, Y + A}, As, {X0, Y0})

and compile under -O6 (or whatever), can I expect the compiler to
spot that it is unnecessary to create a new {}/2 cell on every
iteration?

--
Ralph Becket      |      MSR Cambridge      |      rbeck at microsoft.com 
--------------------------------------------------------------------------
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