+2020-04-27 Jiufu Guo <guojiufu@cn.ibm.com>
+
+ * common/config/rs6000/rs6000-common.c
+ (rs6000_option_optimization_table) [OPT_LEVELS_ALL]: Remove turn off
+ -fweb.
+ * config/rs6000/rs6000.c (rs6000_option_override_internal): Avoid to
+ set flag_web.
+
2020-04-27 Martin Liska <mliska@suse.cz>
PR lto/94659
loops at -O2 and above by default. */
{ OPT_LEVELS_2_PLUS_SPEED_ONLY, OPT_funroll_loops, NULL, 1 },
{ OPT_LEVELS_2_PLUS_SPEED_ONLY, OPT_munroll_only_small_loops, NULL, 1 },
- /* -fweb and -frename-registers are useless in general for rs6000,
- turn them off. */
- { OPT_LEVELS_ALL, OPT_fweb, NULL, 0 },
+
+ /* -frename-registers leads to non-optimal codegen and performance
+ on rs6000, turn it off by default. */
{ OPT_LEVELS_ALL, OPT_frename_registers, NULL, 0 },
/* Double growth factor to counter reduced min jump length. */
SCHED_PRESSURE_MODEL);
/* Explicit -funroll-loops turns -munroll-only-small-loops off, and
- turns -fweb and -frename-registers on. */
+ turns -frename-registers on. */
if ((global_options_set.x_flag_unroll_loops && flag_unroll_loops)
|| (global_options_set.x_flag_unroll_all_loops
&& flag_unroll_all_loops))
unroll_only_small_loops = 0;
if (!global_options_set.x_flag_rename_registers)
flag_rename_registers = 1;
- if (!global_options_set.x_flag_web)
- flag_web = 1;
}
/* If using typedef char *va_list, signal that