From e56261981bc8ad88515fda18d846bf61bf6c2353 Mon Sep 17 00:00:00 2001 From: Ayal Zaks Date: Tue, 25 May 2004 12:55:06 +0000 Subject: ddg.h, [...]: New files. * ddg.h, ddg.c, modulo-sched.c: New files. * cfglayout.c (duplicate_insn_chain): Remove "static" and push internals to "dupicate_insn". (duplicate_insn): New function. * cfglayout.h (duplicate_insn_chain, duplicate_insn): New declarations. * common.opt (fmodulo-sched): New flag. * df.c (df_bb_regno_last_use_find, df_bb_regno_first_def_find): Remove static and forward declaration. (df_find_def, df_reg_used, df_bb_regno_last_def_find): New functions. * df.h (df_bb_regno_last_use_find, df_bb_regno_first_def_find, df_bb_regno_last_def_find, df_find_def, df_reg_used): New declarations. * flags.h (flag_modulo_sched): New flag. * opts.c (common_handle_option): Handle modulo-sched flag. * params.def (max-sms-loop-number, sms-max-ii-factor, sms-dfa-history, sms-loop-average-count-threshold): New parameters. * params.h (MAX_SMS_LOOP_NUMBER, SMS_MAX_II_FACTOR, SMS_DFA_HISTORY, SMS_LOOP_AVERAGE_COUNT_THRESHOLD): New parameters. * passes.c ("sms", "sms-vcg"): New dumps. (rest_of_handle_sched): Call sms_schedule. * rtl.h (sms_schedule): New declaration. * timevar.def (TV_SMS): New. * toplev.c (flag_modulo_sched): Initialize. (f_options): Handle -fmodulo-sched option. * docs/invoke.texi: Document -fmodulo-sched & -dm options. * docs/passes.texi: Document new SMS pass.f toplev.c doc/invoke.texi doc/passes.texi Co-Authored-By: Mostafa Hagog From-SVN: r82235 --- gcc/toplev.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index c15ab99..db3d372 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -707,6 +707,9 @@ int flag_schedule_speculative_load_dangerous = 0; int flag_sched_stalled_insns = 0; int flag_sched_stalled_insns_dep = 1; +/* The following flag controls the module scheduling activation. */ +int flag_modulo_sched = 0; + int flag_single_precision_constant; /* flag_branch_on_count_reg means try to replace add-1,compare,branch tupple @@ -1007,6 +1010,7 @@ static const lang_independent_options f_options[] = {"sched-stalled-insns-dep", &flag_sched_stalled_insns_dep, 1 }, {"sched2-use-superblocks", &flag_sched2_use_superblocks, 1 }, {"sched2-use-traces", &flag_sched2_use_traces, 1 }, + {"modulo-sched", &flag_modulo_sched, 1 }, {"branch-count-reg",&flag_branch_on_count_reg, 1 }, {"pic", &flag_pic, 1 }, {"PIC", &flag_pic, 2 }, -- cgit v1.1