[m-dev.] diff: add option implies for accumulators
Peter Ross
peter.ross at miscrit.be
Fri Mar 2 21:07:06 AEDT 2001
Hi,
===================================================================
Estimated hours taken: 0.5
Branches: main
compiler/handle_options.m:
If we are introducing accumulators turn on two optimizations which
increase the chance of accumulator introduction.
Index: compiler/handle_options.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/handle_options.m,v
retrieving revision 1.99
diff -u -r1.99 handle_options.m
--- compiler/handle_options.m 2001/01/10 10:53:50 1.99
+++ compiler/handle_options.m 2001/03/02 10:04:53
@@ -537,6 +537,11 @@
bool(yes)),
option_implies(intermod_unused_args, optimize_unused_args, bool(yes)),
+ % --introduce-accumulators implies --excess-assign and
+ % --common-struct.
+ option_implies(introduce_accumulators, excess_assign, bool(yes)),
+ option_implies(introduce_accumulators, common_struct, bool(yes)),
+
% Don't do the unused_args optimization when making the
% optimization interface.
option_implies(make_optimization_interface, optimize_unused_args,
--------------------------------------------------------------------------
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