From patchwork Sat Oct 18 16:26:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Teresa Johnson X-Patchwork-Id: 400692 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 80684140095 for ; Sun, 19 Oct 2014 03:26:38 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=hZozMkTQy/g3PjRwrx9F/78lEm7vXFjXmC+VwvBTXZmqZK kn22blXUFxJkWV7IsicAJ4Nl7Nh9gjTQIq+AtH8aCGfLybkKaIDlPlRV39jblKWo Jc0flCF8SDT7AR3v3CsFI1RPOQInRqXHKSUPdH5smPyBMujXL5zf5jE5Oc67w= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; s= default; bh=OPCJvgnsSzoIwfDfIER2N0uNks0=; b=nlPuf4okPTx8Ww0xwI8Y 2tUmTimSeQEqX782KWY0w6Tlhv6HxbnouiLr/vGbmshdlYXxeQ/8qjRmTx6KQfs4 39siB924SnUseXZUs0KquPTpdA9MzltBoMAP9DoSyL2WyIpGbhrVfZu97Zm6EM+A cW3QF/Gfo7ruQegwVrQAD38= Received: (qmail 26954 invoked by alias); 18 Oct 2014 16:26:32 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 26945 invoked by uid 89); 18 Oct 2014 16:26:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qg0-f51.google.com Received: from mail-qg0-f51.google.com (HELO mail-qg0-f51.google.com) (209.85.192.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 18 Oct 2014 16:26:30 +0000 Received: by mail-qg0-f51.google.com with SMTP id z107so1797543qgd.24 for ; Sat, 18 Oct 2014 09:26:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=ddW56LhF1LGb6E7MvtY4MjfaIiXurDwYYSOHnNFfykc=; b=gCyPrk3LZvR5rDndNn3IVQs6CJWDGhYEbGRw38iK0G2aKdHRWbHdGEnUkr6LOqiOa5 7bJOArRsawFC/d67U1me9d3PNPb9tseIK5Unapr6kirJYcirSPaSP/4VO2GvhdVsJtTY j6jgdzjyyG3YON76cTQt0a5meaAf69YPo9+X6qjNQ6YZ0BRnPSs+SB707/OZ7D3CDR4q Bi22cd6C3Do3GYYfYutRdAhxkpNW1if8XPeigx+lcGUzqCq/cisyj6eiMLHDnPGwa4Dl fmnqiwhTEM6MM7dCaLa6DDH6iUvjhP9vZ03M8m4ky7Qk7vO0PMpAnR9H9HqzCFXeszRa LNMg== X-Gm-Message-State: ALoCoQkbcuRq7npFRRBURDAxbygjWjyJ8XG2WE5o1EPeYqnBLiCJGVCRVUratkldL5zOiLWnIpnx MIME-Version: 1.0 X-Received: by 10.140.21.199 with SMTP id 65mr20410136qgl.86.1413649588491; Sat, 18 Oct 2014 09:26:28 -0700 (PDT) Received: by 10.229.148.12 with HTTP; Sat, 18 Oct 2014 09:26:28 -0700 (PDT) Date: Sat, 18 Oct 2014 09:26:28 -0700 Message-ID: Subject: [GOOGLE] Increase max-early-inliner-iterations to 2 for profile-gen and use From: Teresa Johnson To: David Li , "gcc-patches@gcc.gnu.org" X-IsSubscribed: yes Increasing the number of early inliner iterations from 1 to 2 enables more indirect calls to be promoted/inlined before instrumentation. This in turn reduces the instrumentation overhead, particularly for more expensive indirect call topn profiling. Passes internal testing and regression tests. Ok for google/4_9? 2014-10-18 Teresa Johnson Google ref b/17934523 * opts.c (finish_options): Increase max-early-inliner-iterations to 2 for profile-gen and profile-use builds. Index: opts.c =================================================================== --- opts.c (revision 216286) +++ opts.c (working copy) @@ -870,6 +869,14 @@ finish_options (struct gcc_options *opts, struct g opts->x_param_values, opts_set->x_param_values); } + if (opts->x_profile_arc_flag + || opts->x_flag_branch_probabilities) + { + maybe_set_param_value + (PARAM_EARLY_INLINER_MAX_ITERATIONS, 2, + opts->x_param_values, opts_set->x_param_values); + } + if (!(opts->x_flag_auto_profile || (opts->x_profile_arc_flag || opts->x_flag_branch_probabilities))) {