From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id ADE713858C60 for ; Fri, 15 Oct 2021 15:27:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org ADE713858C60 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 95EDC21972; Fri, 15 Oct 2021 15:27:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1634311632; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sHxMtXNWP89UXX0jfe5AvtH0LbGltbshZxXLoI0gBNc=; b=DgSMqUTFKRAMDVenOjPcz9qPYBK8NnMqxZcFcktIhPOtW6at1jQsowMcdm1JASFERfPkNt CTWS+dNFg8b6K4i4bidX9dGuBIj70U5frUvSrKQcRSy7oOcAU9j5OivmRBo7vict90oilv aa0efmbRR+xY+nLXjRpIcuTqA2Gpf4o= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1634311632; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sHxMtXNWP89UXX0jfe5AvtH0LbGltbshZxXLoI0gBNc=; b=Sr7mXTtmX5+5/vOWaM04cqCaNG/7Z0N2QQx9L/j5gW4p47xNif/J67YZXsl2yx3MiY3WII pyz+0+bA73wr3LDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 74D8F13C25; Fri, 15 Oct 2021 15:27:12 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id f24WG9CdaWEtZwAAMHmgww (envelope-from ); Fri, 15 Oct 2021 15:27:12 +0000 Message-ID: Date: Fri, 15 Oct 2021 17:27:12 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH] Fix handling of flag_rename_registers. Content-Language: en-US To: Jeff Law , Richard Biener Cc: GCC Patches , "Joseph S. Myers" References: <12fd0c18-79e0-d20d-2973-92639071c050@suse.cz> From: =?UTF-8?Q?Martin_Li=c5=a1ka?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Oct 2021 15:27:14 -0000 On 10/14/21 16:27, Jeff Law wrote: > So what's the preferred way to handle this?  We're in the process of evaluating -frename-registers on our target right now and subject to verification of a couple issues, our inclination is to turn it on for our target at -O2. > > Jeff I think the best approach is doing that in TARGET_OPTION_OPTIMIZATION_TABLE like c6x does: static const struct default_options c6x_option_optimization_table[] = { { OPT_LEVELS_1_PLUS, OPT_frename_registers, NULL, 1 }, ... } Cheers, Martin