mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-14 13:23:53 +00:00
Address juliensf's review comments on my recent change to add an MLDS
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.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -2548,8 +2548,9 @@ options_help_mlds_mlds_optimization -->
|
||||
"\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."
|
||||
]).
|
||||
|
||||
|
||||
|
||||
@@ -4107,7 +4107,7 @@ by turning self-tailcalls into loops.
|
||||
|
||||
@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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user