From 60867e8c63a99fe6df24d0a0a7f53b6545a92cad Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Thu, 26 Apr 2012 15:49:13 +0000 Subject: common.opt (fsched-pressure-algorithm=): New option. gcc/ * common.opt (fsched-pressure-algorithm=): New option. * flag-types.h (sched_pressure_algorithm): New enum. * sched-int.h (sched_pressure_p): Replace with... (sched_pressure): ...this new variable. * haifa-sched.c (sched_pressure_p): Replace with... (sched_pressure): ...this new variable. (sched_regno_pressure_class, rank_for_schedule, ready_sort) (update_reg_and_insn_max_reg_pressure, schedule_insn) (debug_ready_list, prune_ready_list, schedule_block, sched_init) (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly. * sched-deps.c (init_insn_reg_pressure_info): Likewise. (sched_analyze_insn): Likewise. * sched-rgn.c (schedule_region): Likewise. * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise. From-SVN: r186881 --- gcc/common.opt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gcc/common.opt') diff --git a/gcc/common.opt b/gcc/common.opt index 4a2508c7..37e806a 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -1665,6 +1665,19 @@ fsched-pressure Common Report Var(flag_sched_pressure) Init(0) Optimization Enable register pressure sensitive insn scheduling +fsched-pressure-algorithm= +Common Joined RejectNegative Enum(sched_pressure_algorithm) Var(flag_sched_pressure_algorithm) Init(SCHED_PRESSURE_WEIGHTED) +-fsched-pressure-algorithm=[weighted|model] Set the pressure-scheduling algorithm + +Enum +Name(sched_pressure_algorithm) Type(enum sched_pressure_algorithm) UnknownError(unknown % algorithm %qs) + +EnumValue +Enum(sched_pressure_algorithm) String(weighted) Value(SCHED_PRESSURE_WEIGHTED) + +EnumValue +Enum(sched_pressure_algorithm) String(model) Value(SCHED_PRESSURE_MODEL) + fsched-spec Common Report Var(flag_schedule_speculative) Init(1) Optimization Allow speculative motion of non-loads -- cgit v1.1