From patchwork Thu Jul 19 14:50:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Moore, Catherine" X-Patchwork-Id: 171958 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 4A12D2C0108 for ; Fri, 20 Jul 2012 00:50:56 +1000 (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=1343314258; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:From:To:CC:Subject:Date:Message-ID:Content-Type: Content-Transfer-Encoding:MIME-Version:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=7X2298B+9J/kgDIJ2Ccp0e4wOOA=; b=EmBrODY4AR2l+Dx Nza9JovIzzjd7XLtQ5bkQB3CiQY1HpalaEklJOY8TRBcU44nncy6KFhmKubFG1wQ 1OwKXy4Q6FbJEi5b480RXOMqgrB5LnLzRt4+WS4jGlbhFxkOagVlJnCmsnSKXLnI 2TsiEkO2C5t00eVu6Q98hXS8l66U= 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:From:To:CC:Subject:Date:Message-ID:Content-Type:Content-Transfer-Encoding:MIME-Version:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=GKVu9pF+mYT79o2CwiIzOkv3BXEBZ9219WYFLTf7a/u2d1EFRX3mSPAIgKYsLM QqG3EmO06cUOusgtk5/OA9D73HEFRHMap8caRw5uBHn7P5ziWZRqflUD9DFVfVvr yZU7Drb7wyvWKxWqs1HEqSDBM5/8+G57ma1oF+4EIkDhA=; Received: (qmail 25612 invoked by alias); 19 Jul 2012 14:50:51 -0000 Received: (qmail 25603 invoked by uid 22791); 19 Jul 2012 14:50:50 -0000 X-SWARE-Spam-Status: No, hits=-2.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 relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Jul 2012 14:50:28 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1Srs3e-0004kN-Al from Catherine_Moore@mentor.com ; Thu, 19 Jul 2012 07:50:26 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 19 Jul 2012 07:50:25 -0700 Received: from NA-MBX-04.mgc.mentorg.com ([169.254.4.87]) by SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) with mapi id 14.01.0289.001; Thu, 19 Jul 2012 07:50:25 -0700 From: "Moore, Catherine" To: "gcc-patches@gcc.gnu.org" CC: "Moore, Catherine" , "rdsandiford@googlemail.com" , "Rozycki, Maciej" Subject: [PATCH] Run peephole2 after sched2 Date: Thu, 19 Jul 2012 14:50:25 +0000 Message-ID: MIME-Version: 1.0 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, The microMIPS port benefits from an additional peephole2 pass. Sched2 exposes some opportunities to recognize the movep instruction. Does this look okay to commit? Thanks, Catherine 2012-07-19 Catherine Moore Chao-ying Fu * passes.c (init_optimization_passes): Run peephole2 after sched2. Index: passes.c =================================================================== --- passes.c (revision 189440) +++ passes.c (working copy) @@ -1589,6 +1589,7 @@ init_optimization_passes (void) NEXT_PASS (pass_leaf_regs); NEXT_PASS (pass_split_before_sched2); NEXT_PASS (pass_sched2); + NEXT_PASS (pass_peephole2); NEXT_PASS (pass_stack_regs); { struct opt_pass **p = &pass_stack_regs.pass.sub;