From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 105696 invoked by alias); 26 Apr 2016 12:44:28 -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 105653 invoked by uid 89); 26 Apr 2016 12:44:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=BAYES_00,KAM_ASCII_DIVIDERS,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=bschmidt@redhat.com, bschmidtredhatcom, Enabled, 2016-04-26 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 26 Apr 2016 12:44:12 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EF17763154 for ; Tue, 26 Apr 2016 12:44:10 +0000 (UTC) Received: from localhost.localdomain (vpn1-5-160.ams2.redhat.com [10.36.5.160]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u3QCi9k8028292; Tue, 26 Apr 2016 08:44:10 -0400 Subject: Re: Enabling -frename-registers? To: Jeff Law , GCC Patches References: <56AB9759.407@t-online.de> <56ABA2BA.3030705@redhat.com> <5713DD2C.6080402@redhat.com> From: Bernd Schmidt Message-ID: <571F6299.30308@redhat.com> Date: Tue, 26 Apr 2016 12:44:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <5713DD2C.6080402@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg01475.txt.bz2 On 04/17/2016 08:59 PM, Jeff Law wrote: > invoke.texi has an independent list (probably incomplete! ;( of all the > things that -O2 enables. Make sure to add -frename-registers to that > list and this is Ok for the trunk (gcc-7). This is what I committed. Bernd Index: gcc/ChangeLog =================================================================== --- gcc/ChangeLog (revision 235441) +++ gcc/ChangeLog (working copy) @@ -1,3 +1,10 @@ +2016-04-26 Bernd Schmidt + + PR rtl-optimization/57193 + * opts.c (default_options_table): Add OPT_frename_registers at -O2 + and above. + * doc/invoke.texi (-frename-registers, -O2): Update documentation. + 2016-04-26 Bin Cheng * tree-if-conv.c (any_pred_load_store): New static variable. Index: gcc/opts.c =================================================================== --- gcc/opts.c (revision 235441) +++ gcc/opts.c (working copy) @@ -498,6 +498,7 @@ static const struct default_options defa { OPT_LEVELS_2_PLUS, OPT_fstrict_overflow, NULL, 1 }, { OPT_LEVELS_2_PLUS_SPEED_ONLY, OPT_freorder_blocks_algorithm_, NULL, REORDER_BLOCKS_ALGORITHM_STC }, + { OPT_LEVELS_2_PLUS, OPT_frename_registers, NULL, 1 }, { OPT_LEVELS_2_PLUS, OPT_freorder_functions, NULL, 1 }, { OPT_LEVELS_2_PLUS, OPT_ftree_vrp, NULL, 1 }, { OPT_LEVELS_2_PLUS, OPT_ftree_pre, NULL, 1 }, Index: gcc/doc/invoke.texi =================================================================== --- gcc/doc/invoke.texi (revision 235441) +++ gcc/doc/invoke.texi (working copy) @@ -6255,6 +6255,7 @@ also turns on the following optimization -foptimize-strlen @gol -fpartial-inlining @gol -fpeephole2 @gol +-frename-registers @gol -freorder-blocks-algorithm=stc @gol -freorder-blocks-and-partition -freorder-functions @gol -frerun-cse-after-loop @gol @@ -8562,7 +8563,8 @@ debug information format adopted by the make debugging impossible, since variables no longer stay in a ``home register''. -Enabled by default with @option{-funroll-loops} and @option{-fpeel-loops}. +Enabled by default with @option{-funroll-loops} and @option{-fpeel-loops}, +and also enabled at levels @option{-O2} and @option{-O3}. @item -fschedule-fusion @opindex fschedule-fusion