From: Bernd Schmidt Date: Tue, 26 Apr 2016 12:43:42 +0000 (+0000) Subject: Enable -frename-registers at -O2. X-Git-Tag: basepoints/gcc-8~7432 X-Git-Url: https://gcc.gnu.org/git/?a=commitdiff_plain;h=1d776c5f1b922f1416a87ef9f1210a279e44c3d1;p=gcc.git Enable -frename-registers at -O2. PR rtl-optimization/57193 * opts.c (default_options_table): Add OPT_frename_registers at -O2 and above. * doc/invoke.texi (-frename-registers, -O2): Update documentation. From-SVN: r235442 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dfc008167cc7..f43934566eec 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-04-26 Bernd Schmidt + + PR rtl-optimization/57193 + * opts.c (default_options_table): Add OPT_frename_registers at -O2 + and above. + * doc/invoke.texi (-frename-registers, -O2): Update documentation. + 2016-04-26 Bin Cheng * tree-if-conv.c (any_pred_load_store): New static variable. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 0f97e6d912c8..2617cb458ba4 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -6255,6 +6255,7 @@ also turns on the following optimization flags: -foptimize-strlen @gol -fpartial-inlining @gol -fpeephole2 @gol +-frename-registers @gol -freorder-blocks-algorithm=stc @gol -freorder-blocks-and-partition -freorder-functions @gol -frerun-cse-after-loop @gol @@ -8562,7 +8563,8 @@ debug information format adopted by the target, however, it can make debugging impossible, since variables no longer stay in a ``home register''. -Enabled by default with @option{-funroll-loops} and @option{-fpeel-loops}. +Enabled by default with @option{-funroll-loops} and @option{-fpeel-loops}, +and also enabled at levels @option{-O2} and @option{-O3}. @item -fschedule-fusion @opindex fschedule-fusion diff --git a/gcc/opts.c b/gcc/opts.c index 0f9431a0b323..649b84b3f6f3 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -498,6 +498,7 @@ static const struct default_options default_options_table[] = { OPT_LEVELS_2_PLUS, OPT_fstrict_overflow, NULL, 1 }, { OPT_LEVELS_2_PLUS_SPEED_ONLY, OPT_freorder_blocks_algorithm_, NULL, REORDER_BLOCKS_ALGORITHM_STC }, + { OPT_LEVELS_2_PLUS, OPT_frename_registers, NULL, 1 }, { OPT_LEVELS_2_PLUS, OPT_freorder_functions, NULL, 1 }, { OPT_LEVELS_2_PLUS, OPT_ftree_vrp, NULL, 1 }, { OPT_LEVELS_2_PLUS, OPT_ftree_pre, NULL, 1 },