aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2014-01-17 14:49:18 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2014-01-17 14:49:18 +0000
commit14379e666810cff69f620fbad5a44ce2d68486c3 (patch)
treeb9e05de50b35d90bd6fffa9b05c48acfdfe12bf2
parent88e18bd5cc520a945793b5cae2561ad3a70633f6 (diff)
downloadgcc-14379e666810cff69f620fbad5a44ce2d68486c3.zip
gcc-14379e666810cff69f620fbad5a44ce2d68486c3.tar.gz
gcc-14379e666810cff69f620fbad5a44ce2d68486c3.tar.bz2
re PR tree-optimization/46590 (long compile time with -O2 and many loops)
2014-01-17 Richard Biener <rguenther@suse.de> PR tree-optimization/46590 * opts.c (default_options_table): Add entries for OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta, all enabled at -O1 but not for -Og. * common.opt (fbranch-count-reg): Remove Init(1). (fmove-loop-invariants): Likewise. (ftree-pta): Likewise. From-SVN: r206714
-rw-r--r--gcc/ChangeLog10
-rw-r--r--gcc/common.opt6
-rw-r--r--gcc/opts.c3
3 files changed, 16 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5440d44..870d232 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,13 @@
+2014-01-17 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/46590
+ * opts.c (default_options_table): Add entries for
+ OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
+ all enabled at -O1 but not for -Og.
+ * common.opt (fbranch-count-reg): Remove Init(1).
+ (fmove-loop-invariants): Likewise.
+ (ftree-pta): Likewise.
+
2014-01-17 Jakub Jelinek <jakub@redhat.com>
* config/i386/i386.c (ix86_data_alignment): For compatibility with
diff --git a/gcc/common.opt b/gcc/common.opt
index 03f9b9b..d334cf2 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -875,7 +875,7 @@ Common Report Var(flag_bounds_check)
Generate code to check bounds before indexing arrays
fbranch-count-reg
-Common Report Var(flag_branch_on_count_reg) Init(1) Optimization
+Common Report Var(flag_branch_on_count_reg) Optimization
Replace add, compare, branch with branch on count register
fbranch-probabilities
@@ -1564,7 +1564,7 @@ Common Report Var(flag_modulo_sched_allow_regmoves)
Perform SMS based modulo scheduling with register moves allowed
fmove-loop-invariants
-Common Report Var(flag_move_loop_invariants) Init(1) Optimization
+Common Report Var(flag_move_loop_invariants) Optimization
Move loop invariant computations out of loops
fdce
@@ -2170,7 +2170,7 @@ Common Report Var(flag_tree_partial_pre) Optimization
In SSA-PRE optimization on trees, enable partial-partial redundancy elimination
ftree-pta
-Common Report Var(flag_tree_pta) Init(1) Optimization
+Common Report Var(flag_tree_pta) Optimization
Perform function-local points-to analysis on trees.
ftree-reassoc
diff --git a/gcc/opts.c b/gcc/opts.c
index bac1aff..7dee0e7 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -454,6 +454,9 @@ static const struct default_options default_options_table[] =
{ OPT_LEVELS_1_PLUS, OPT_fcombine_stack_adjustments, NULL, 1 },
{ OPT_LEVELS_1_PLUS, OPT_fcompare_elim, NULL, 1 },
{ OPT_LEVELS_1_PLUS, OPT_ftree_slsr, NULL, 1 },
+ { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fbranch_count_reg, NULL, 1 },
+ { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fmove_loop_invariants, NULL, 1 },
+ { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_ftree_pta, NULL, 1 },
/* -O2 optimizations. */
{ OPT_LEVELS_2_PLUS, OPT_finline_small_functions, NULL, 1 },