From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8367 invoked by alias); 21 May 2014 13:31:04 -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 8345 invoked by uid 89); 21 May 2014 13:31:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00 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, 21 May 2014 13:30:35 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 4039BAC47 for ; Wed, 21 May 2014 13:30:32 +0000 (UTC) Resent-From: Martin Jambor Resent-Date: Wed, 21 May 2014 15:30:31 +0200 Resent-Message-ID: <20140521133031.GB15866@virgil.suse> Resent-To: GCC Patches Message-Id: <20140521131634.272479381@virgil.suse.cz> User-Agent: quilt/0.60-8.1.3 Date: Wed, 21 May 2014 13:31:00 -0000 From: Martin Jambor To: GCC Patches Cc: Jan Hubicka Subject: [PATCH 1/7] Add missing documentation of four IPA-CP params References: <20140521131634.178838544@virgil.suse.cz> Content-Disposition: inline; filename=doc_missing_params.diff X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg01767.txt.bz2 Hi, in his review of the next patch of this series, Honza pointed out that the path did not include documentation of a parameter it was adding. When I set out to correct this I found out I had already been guilty of not adding documentation of four other parameters before. I'd like to correct this by this separate patch which I'd like to propose also for 4.9 because it is missing there as well. Checked by running make info. OK for both branches? Thanks, Martin 2014-05-16 Martin Jambor * doc/invoke.texi (Optimize Options): Document parameters ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus. Index: src/gcc/doc/invoke.texi =================================================================== --- src.orig/gcc/doc/invoke.texi +++ src/gcc/doc/invoke.texi @@ -10076,6 +10076,28 @@ parameter in order to propagate them and @option{ipa-cp-value-list-size} is the maximum number of values and types it stores per one formal parameter of a function. +@item ipa-cp-eval-threshold +IPA-CP calculates its own score of cloning profitability heuristics +and performs those cloning opportunities with scores that exceed +@option{ipa-cp-eval-threshold}. + +@item ipa-max-agg-items +IPA-CP is also capable to propagate a number of scalar values passed +in an aggregate. @option{ipa-max-agg-items} controls the maximum +number of such values per one parameter. + +@item ipa-cp-loop-hint-bonus +When IPA-CP determines that a cloning candidate would make the number +of iterations of a loop known, it adds a bonus of +@option{ipa-cp-loop-hint-bonus} bonus to the profitability score of +the candidate. + +@item ipa-cp-array-index-hint-bonus +When IPA-CP determines that a cloning candidate would make the index of +an array access known, it adds a bonus of +@option{ipa-cp-array-index-hint-bonus} bonus to the profitability +score of the candidate. + @item lto-partitions Specify desired number of partitions produced during WHOPR compilation. The number of partitions should exceed the number of CPUs used for compilation.