[m-rev.] diff: IL back-end: improve commit handling
Fergus Henderson
fjh at cs.mu.OZ.AU
Mon Jul 16 20:15:44 AEST 2001
On 16-Jul-2001, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> On 16-Jul-2001, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> > I don't think ml_code_gen.m is the right place to fix it anyway.
> > The right place to fix it is in mlds_to_il.m.
>
> I don't think it is a good idea to introduce variables in ml_code_gen.m
> that are only used by specific backends, and then go to all the trouble
> of weeding them out in the other backends. But if you want to...
The reason that I think the variables should be introduced is that they
are referred to from the do_commit and try_commit instructions, and
dropping their definitions from the MLDS without dropping the references
to them would make the MLDS inconsistent -- it break the invariant that
every local variable referred to in the MLDS is also defined in the MLDS.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list