From patchwork Fri Nov 9 10:30:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Bruel X-Patchwork-Id: 198014 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]) by ozlabs.org (Postfix) with SMTP id 04FEF2C031B for ; Fri, 9 Nov 2012 21:30:44 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1353061845; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Message-ID:Date:From:User-Agent:MIME-Version: To:Subject:Content-Type:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=8Zu39EC5BL2q2JK5823oWhRAL0Y=; b=OODFrxiP+by/eou a/6hDLOUORPmBCnJaM/U1FfY/hYBm1NHbq8aeXUzwFpP+sHHRmtnD72LLAK8lvGQ sLGb1kTiueL0Q6ToxBetqwyDVFiWUjHrgFK2yJ0/e6gH+4imsX7PDBceLj7IGAL7 G1eDUA0+Bj+7y52JddyJBWujcLe8= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=XAN1iKzPWmU6ndbSp9zNGita+kKyRDEJv5MzEpBlOLJvotYR0GaYoEBG0+Aobz OpfUxYYuA7Eo2dCvcz5PBavDsLYPCXI/uz9SR5Vc+rdIs+YUlABZneeZQu3xlEj2 XXmMJ9N4PRdOip2IwckdidqunPmgD4VuUVF5t/0PTAcyk=; Received: (qmail 7778 invoked by alias); 9 Nov 2012 10:30:41 -0000 Received: (qmail 7740 invoked by uid 22791); 9 Nov 2012 10:30:40 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from eu1sys200aog120.obsmtp.com (HELO eu1sys200aog120.obsmtp.com) (207.126.144.149) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Nov 2012 10:30:33 +0000 Received: from beta.dmz-eu.st.com ([164.129.1.35]) (using TLSv1) by eu1sys200aob120.postini.com ([207.126.147.11]) with SMTP ID DSNKUJzbRQCFQqKgG363qQyPnSefyJ3+neJE@postini.com; Fri, 09 Nov 2012 10:30:33 UTC Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 09D6A2D0; Fri, 9 Nov 2012 10:30:28 +0000 (GMT) Received: from Webmail-eu.st.com (safex1hubcas5.st.com [10.75.90.71]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 7B443458A; Fri, 9 Nov 2012 10:30:28 +0000 (GMT) Received: from [164.129.122.89] (164.129.122.89) by webmail-eu.st.com (10.75.90.13) with Microsoft SMTP Server (TLS) id 8.3.245.1; Fri, 9 Nov 2012 11:30:28 +0100 Message-ID: <509CDB43.9000708@st.com> Date: Fri, 9 Nov 2012 11:30:27 +0100 From: Christian Bruel User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: Kaz Kojima , "gcc-patches@gcc.gnu.org" Subject: [SH] Enable shrink-wrap with reorder_blocks_and_parition X-IsSubscribed: yes 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 Hi Kaz, Now that the cross-jumping problem is fixed since rev #193350, I'd like to remove this restriction and close PR/54546. Checked with default sh-sim target_board and --target_board=sh-sim/-freorder-blocks-and-partition. Thanks Christian 2012-11-09 Christian Bruel * config/sh/sh.c (sh_can_use_simple_return_p): Allow with reorder-blocks-and-partition. Index: config/sh/sh.c =================================================================== --- config/sh/sh.c (revision 193350) +++ config/sh/sh.c (working copy) @@ -13330,10 +13330,6 @@ sh_can_use_simple_return_p (void) if (optimize_function_for_size_p (cfun)) return false; - /* Can't optimize CROSSING_JUMPS for now. */ - if (flag_reorder_blocks_and_partition) - return false; - /* Finally, allow for pr save. */ d = calc_live_regs (&live_regs_mask);