https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90340

--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #6)
> I'm curious how much can save following patch:
> 
> diff --git a/gcc/tree-switch-conversion.h b/gcc/tree-switch-conversion.h
> index b3bc4b9ddf7..904827fa040 100644
> --- a/gcc/tree-switch-conversion.h
> +++ b/gcc/tree-switch-conversion.h
> @@ -271,7 +271,7 @@ struct jump_table_cluster: public group_cluster
>    static bool is_enabled (void);
>  
>    /* Max growth ratio for code that is optimized for size.  */
> -  static const unsigned HOST_WIDE_INT max_ratio_for_size = 3;
> +  static const unsigned HOST_WIDE_INT max_ratio_for_size = 2;
>  
>    /* Max growth ratio for code that is optimized for speed.  */
>    static const unsigned HOST_WIDE_INT max_ratio_for_speed = 8;

I guess most of these should have been --params ...

Reply via email to