From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12854 invoked by alias); 7 Jan 2019 16:21:41 -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 12839 invoked by uid 89); 7 Jan 2019 16:21:41 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.9 required=5.0 tests=BAYES_00,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Sandra, sandra, H*r:0800 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 07 Jan 2019 16:21:39 +0000 Received: from svr-orw-mbx-03.mgc.mentorg.com ([147.34.90.203]) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1ggXei-0007fe-Mc from Sandra_Loosemore@mentor.com ; Mon, 07 Jan 2019 08:21:36 -0800 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Mon, 7 Jan 2019 08:21:34 -0800 Subject: Re: Add forgotten options to -fprofile-use To: Jan Hubicka , References: <20190106164744.4etcmssr3jg2opxc@kam.mff.cuni.cz> From: Sandra Loosemore Message-ID: <3fbe985c-43ae-99de-cc2c-8dacaee79b35@codesourcery.com> Date: Mon, 07 Jan 2019 16:21:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190106164744.4etcmssr3jg2opxc@kam.mff.cuni.cz> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2019-01/txt/msg00319.txt.bz2 On 1/6/19 9:47 AM, Jan Hubicka wrote: > Index: doc/invoke.texi > =================================================================== > --- doc/invoke.texi (revision 267603) > +++ doc/invoke.texi (working copy) > @@ -9499,6 +9499,8 @@ DO I = 1, N > D(I) = E(I) * F > ENDDO > @end smallexample > +This flag is enabled by default at @option{-O3}. > +It is also enabled by @option{-fprofile-use} and @option{-fauto-profile}. > > @item -ftree-loop-distribute-patterns > @opindex ftree-loop-distribute-patterns > @@ -9524,6 +9526,8 @@ DO I = 1, N > ENDDO > @end smallexample > and the initialization loop is transformed into a call to memset zero. > +This flag is enabled by default at @option{-O3}. > +It is also enabled by @option{-fprofile-use} and @option{-fauto-profile}. > > @item -floop-interchange > @opindex floop-interchange > @@ -9544,12 +9548,14 @@ for (int i = 0; i < N; i++) > c[i][j] = c[i][j] + a[i][k]*b[k][j]; > @end smallexample > This flag is enabled by default at @option{-O3}. > +It is also enabled by @option{-fprofile-use} and @option{-fauto-profile}. > > @item -floop-unroll-and-jam > @opindex floop-unroll-and-jam > Apply unroll and jam transformations on feasible loops. In a loop > nest this unrolls the outer loop by some factor and fuses the resulting > multiple inner loops. This flag is enabled by default at @option{-O3}. > +It is also enabled by @option{-fprofile-use} and @option{-fauto-profile}. > > @item -ftree-loop-im > @opindex ftree-loop-im > @@ -10804,6 +10810,8 @@ else > > This is particularly useful for assumed-shape arrays in Fortran where > (for example) it allows better vectorization assuming contiguous accesses. > +This flag is enabled by default at @option{-O3}. > +It is also enabled by @option{-fprofile-use} and @option{-fauto-profile}. > > @item -ffunction-sections > @itemx -fdata-sections > The documentation for -fprofile-use and -fauto-profile also includes tables of the other options implied by those options. Can you please update those too? I just synced them up with the code a couple months ago (PR middle-end/23197). -Sandra