Hi. The param is changed here:
/* Restrict the amount of work combine does at -Og while retaining most of its useful transforms. */ if (opts->x_optimize_debug) SET_OPTION_IF_UNSET (opts, opts_set, param_max_combine_insns, 2); and so that it should be per-function. The only usage is in combine RTL pass, which is per-function optimization. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin gcc/ChangeLog: 2020-01-02 Martin Liska <mli...@suse.cz> PR tree-optimization/92860 * params.opt: Mart param_max_combine_insns with Optimization keyword. --- gcc/params.opt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/params.opt b/gcc/params.opt index c58a375e4c8..6f05b29a929 100644 --- a/gcc/params.opt +++ b/gcc/params.opt @@ -375,7 +375,7 @@ Common Joined UInteger Var(param_max_average_unrolled_insns) Init(80) Param The maximum number of instructions to consider to unroll in a loop on average. -param=max-combine-insns= -Common Joined UInteger Var(param_max_combine_insns) Init(4) IntegerRange(2, 4) Param +Common Joined UInteger Var(param_max_combine_insns) Init(4) IntegerRange(2, 4) Param Optimization The maximum number of insns combine tries to combine. -param=max-completely-peel-loop-nest-depth=