[m-dev.] Re: for review: convert MLDS assignments into initializers

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Feb 12 15:43:54 AEDT 2001


Estimated hours taken: 0.25

Address juliensf's review comments on my recent change to add an MLDS
optimization to convert assignments into initializers.

compiler/ml_optimize.m:
doc/user_guide.texi:
	Fix some typos.

compiler/options.m:
	Wrap some long lines.

cvs patch -t mercury/compiler/ml_optimize.m mercury/compiler/options.m mercury/doc/user_guide.texi
Index: mercury/compiler/ml_optimize.m
diff -u mercury/compiler/ml_optimize.m:1.5 mercury/compiler/ml_optimize.m:1.6
--- mercury/compiler/ml_optimize.m:1.5	Thu Feb  8 23:54:07 2001
+++ mercury/compiler/ml_optimize.m	Mon Feb 12 15:39:53 2001
@@ -9,9 +9,9 @@
 
 % This module runs various optimizations on the MLDS.
 %
-% Currently the optimization we do here are
-%	- turning tailcalls into loops.
-%	- converting assignments to local variables into variable initializers
+% Currently the optimizations we do here are
+%	- turning tailcalls into loops;
+%	- converting assignments to local variables into variable initializers.
 %
 % Note that tailcall detection is done in ml_tailcall.m.
 % It might be nice to move the detection here, and do both the
Index: mercury/compiler/options.m
diff -u mercury/compiler/options.m:1.310 mercury/compiler/options.m:1.311
--- mercury/compiler/options.m:1.310	Thu Feb  8 23:54:07 2001
+++ mercury/compiler/options.m	Mon Feb 12 15:39:53 2001
@@ -2548,8 +2548,9 @@
 		"\tTreat tailcalls as ordinary calls, rather than optimizing",
 		"\tby turning self-tailcalls into loops.",
 		"--no-optimize-initializations",
-		"\tLeave initializations of local variables as assignment statements,",
-		"\trather converting such assignments statements into initializers."
+		"\tLeave initializations of local variables as assignment",
+		"\tstatements, rather than converting such assignments statements",
+		"\tinto initializers."
 	]).
 
 
Index: mercury/doc/user_guide.texi
diff -u mercury/doc/user_guide.texi:1.239 mercury/doc/user_guide.texi:1.240
--- mercury/doc/user_guide.texi:1.239	Thu Feb  8 23:54:12 2001
+++ mercury/doc/user_guide.texi	Mon Feb 12 15:39:58 2001
@@ -4107,7 +4107,7 @@
 
 @item --no-optimize-initializations
 Leave initializations of local variables as assignment statements,
-rather converting such assignments statements into initializers.
+rather than converting such assignments statements into initializers.
 
 @end table
 

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- 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