From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1075) id 2F147385803B; Sun, 16 May 2021 13:00:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F147385803B Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Jan Hubicka To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/hubicka/heads/honza-gcc-benchmark-branch-v2)] Enable very cheap autovectorization at -O2 and -O3 X-Act-Checkin: gcc X-Git-Author: Jan Hubicka X-Git-Refname: refs/users/hubicka/heads/honza-gcc-benchmark-branch-v2 X-Git-Oldrev: f07c59dddd84dac6548d0796f1122125a6edd9af X-Git-Newrev: 268e7b39704bffd968de4e9b0567e00468fbdaa8 Message-Id: <20210516130030.2F147385803B@sourceware.org> Date: Sun, 16 May 2021 13:00:30 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 May 2021 13:00:30 -0000 https://gcc.gnu.org/g:268e7b39704bffd968de4e9b0567e00468fbdaa8 commit 268e7b39704bffd968de4e9b0567e00468fbdaa8 Author: Jan Hubicka Date: Sun May 16 15:00:08 2021 +0200 Enable very cheap autovectorization at -O2 and -O3 Diff: --- gcc/ChangeLog.honza | 2 +- gcc/opts.c | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog.honza b/gcc/ChangeLog.honza index 122c755faee..ef80ceb87cf 100644 --- a/gcc/ChangeLog.honza +++ b/gcc/ChangeLog.honza @@ -1,2 +1,2 @@ - mainline - - mainline + disabled ipa modref + - mainline + very cheap vectorization O2 and O3 diff --git a/gcc/opts.c b/gcc/opts.c index a102da89d16..5afa4e965a6 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -467,6 +467,7 @@ static const struct default_options default_options_table[] = { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_finline_functions_called_once, NULL, 1 }, { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fmove_loop_invariants, NULL, 1 }, { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fssa_phiopt, NULL, 1 }, + { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fipa_modref, NULL, 1 }, { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_ftree_bit_ccp, NULL, 1 }, { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_ftree_dse, NULL, 1 }, { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_ftree_pta, NULL, 1 }, @@ -507,9 +508,11 @@ static const struct default_options default_options_table[] = { OPT_LEVELS_2_PLUS, OPT_ftree_switch_conversion, NULL, 1 }, { OPT_LEVELS_2_PLUS, OPT_ftree_tail_merge, NULL, 1 }, { OPT_LEVELS_2_PLUS, OPT_ftree_vrp, NULL, 1 }, - { OPT_LEVELS_2_PLUS, OPT_fvect_cost_model_, NULL, VECT_COST_MODEL_CHEAP }, + { OPT_LEVELS_2_PLUS, OPT_fvect_cost_model_, NULL, VECT_COST_MODEL_VERY_CHEAP }, { OPT_LEVELS_2_PLUS, OPT_finline_functions, NULL, 1 }, { OPT_LEVELS_2_PLUS, OPT_ftree_loop_distribute_patterns, NULL, 1 }, + { OPT_LEVELS_2_PLUS, OPT_ftree_loop_vectorize, NULL, 1 }, + { OPT_LEVELS_2_PLUS, OPT_ftree_slp_vectorize, NULL, 1 }, /* -O2 and above optimizations, but not -Os or -Og. */ { OPT_LEVELS_2_PLUS_SPEED_ONLY, OPT_falign_functions, NULL, 1 }, @@ -536,11 +539,9 @@ static const struct default_options default_options_table[] = { OPT_LEVELS_3_PLUS, OPT_fsplit_loops, NULL, 1 }, { OPT_LEVELS_3_PLUS, OPT_fsplit_paths, NULL, 1 }, { OPT_LEVELS_3_PLUS, OPT_ftree_loop_distribution, NULL, 1 }, - { OPT_LEVELS_3_PLUS, OPT_ftree_loop_vectorize, NULL, 1 }, { OPT_LEVELS_3_PLUS, OPT_ftree_partial_pre, NULL, 1 }, - { OPT_LEVELS_3_PLUS, OPT_ftree_slp_vectorize, NULL, 1 }, { OPT_LEVELS_3_PLUS, OPT_funswitch_loops, NULL, 1 }, - { OPT_LEVELS_3_PLUS, OPT_fvect_cost_model_, NULL, VECT_COST_MODEL_DYNAMIC }, + { OPT_LEVELS_3_PLUS, OPT_fvect_cost_model_, NULL, VECT_COST_MODEL_VERY_CHEAP }, { OPT_LEVELS_3_PLUS, OPT_fversion_loops_for_strides, NULL, 1 }, /* -O3 parameters. */