On Fri, 14 Nov 2025, Filip Kastl wrote:

> 
> Hi,
> 
> I originally intended to implement algorithm mentioned in pr118353 and
> therefore make use of this param.  I didn't get to it this stage1 though, so
> I'm removing the param.
> 
> Bootstrapped on x86_64 linux.  Didn't run testsuite since I don't expect a
> removal of a param to break any tests -- git grep
> 'switch-lower-slow-alg-max-cases' reveals that no tests mention the param.
> 
> Ok to commit?

OK.

Richard.

> Filip Kastl
> 
> 
> --- 8< ---
> 
> 
> I removed the only use of this param in r16-348-gc14560907a9586.  Remove
> the param.
> 
> gcc/ChangeLog:
> 
>       * doc/invoke.texi: Remove mention of switch-lower-slow-alg-max-cases.
>       * params.opt: Remove switch-lower-slow-alg-max-cases.
> 
> Signed-off-by: Filip Kastl <[email protected]>
> ---
>  gcc/doc/invoke.texi | 3 ---
>  gcc/params.opt      | 4 ----
>  2 files changed, 7 deletions(-)
> 
> diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
> index 27a9e2e5e93..df4331fbad0 100644
> --- a/gcc/doc/invoke.texi
> +++ b/gcc/doc/invoke.texi
> @@ -17295,9 +17295,6 @@ Switch initialization conversion refuses to create 
> arrays that are
>  bigger than @option{switch-conversion-max-branch-ratio} times the number of
>  branches in the switch.
>  
> -@item switch-lower-slow-alg-max-cases
> -Maximum number of cases for slow switch lowering algorithms to be used.
> -
>  @item max-partial-antic-length
>  Maximum length of the partial antic set computed during the tree
>  partial redundancy elimination optimization (@option{-ftree-pre}) when
> diff --git a/gcc/params.opt b/gcc/params.opt
> index f8884e976e7..7c226355c08 100644
> --- a/gcc/params.opt
> +++ b/gcc/params.opt
> @@ -1095,10 +1095,6 @@ Maximum number of instruction distance that a small 
> store forwarded to a larger
>  Common Joined UInteger Var(param_switch_conversion_branch_ratio) Init(8) 
> IntegerRange(1, 65536) Param Optimization
>  The maximum ratio between array size and switch branches for a switch 
> conversion to take place.
>  
> --param=switch-lower-slow-alg-max-cases=
> -Common Joined UInteger Var(param_switch_lower_slow_alg_max_cases) Init(1000) 
> IntegerRange(1, 1000000000) Param Optimization
> -Maximum number of cases for slow switch lowering algorithms to be used.
> -
>  -param=modref-max-bases=
>  Common Joined UInteger Var(param_modref_max_bases) Init(32) Param 
> Optimization
>  Maximum number of bases stored in each modref tree.
> 

-- 
Richard Biener <[email protected]>
SUSE Software Solutions Germany GmbH,
Frankenstrasse 146, 90461 Nuernberg, Germany;
GF: Jochen Jaser, Andrew McDonald, Werner Knoblich; (HRB 36809, AG Nuernberg)

Reply via email to