From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29290 invoked by alias); 3 Sep 2014 14:14:59 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 29280 invoked by uid 89); 3 Sep 2014 14:14:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx2.suse.de Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Wed, 03 Sep 2014 14:14:58 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 5133AACD0 for ; Wed, 3 Sep 2014 14:14:55 +0000 (UTC) Date: Wed, 03 Sep 2014 14:14:00 -0000 From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] Speedup -Og Message-ID: User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2014-09/txt/msg00244.txt.bz2 I seem to have lost this patch in my dev tree for some reason. After introducing --param max-combine-insns it was the idea to restrict combine to two-insn combines for -Og as combine is a major RTL compile-time hog. Bootstrapped and tested on x86_64-unknown-linux-gnu, applied. Richard. 2014-09-03 Richard Biener * opts.c (default_options_optimization): Adjust max-combine-insns to 2 for -Og. Index: gcc/opts.c =================================================================== *** gcc/opts.c (revision 214810) --- gcc/opts.c (working copy) *************** default_options_optimization (struct gcc *** 636,641 **** --- 637,648 ---- default_param_value (PARAM_MIN_CROSSJUMP_INSNS), opts->x_param_values, opts_set->x_param_values); + /* Restrict the amount of work combine does at -Og while retaining + most of its useful transforms. */ + if (opts->x_optimize_debug) + maybe_set_param_value (PARAM_MAX_COMBINE_INSNS, 2, + opts->x_param_values, opts_set->x_param_values); + /* Allow default optimizations to be specified on a per-machine basis. */ maybe_default_options (opts, opts_set, targetm_common.option_optimization_table,