From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6469 invoked by alias); 12 Aug 2011 16:12:05 -0000 Received: (qmail 6455 invoked by uid 22791); 12 Aug 2011 16:12:04 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SARE_LWSHORTT,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 12 Aug 2011 16:11:43 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7CGBg8l020909 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 12 Aug 2011 12:11:42 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p7CGBfqW025374; Fri, 12 Aug 2011 12:11:42 -0400 Received: from [10.3.113.132] (ovpn-113-132.phx2.redhat.com [10.3.113.132]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p7CGBeBr024264; Fri, 12 Aug 2011 12:11:40 -0400 Message-ID: <4E4550BB.6080802@redhat.com> Date: Fri, 12 Aug 2011 16:12:00 -0000 From: Jeff Law User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0 MIME-Version: 1.0 To: "Paulo J. Matos" CC: Vladimir Makarov , Richard Guenther , gcc@gcc.gnu.org Subject: Re: Move insn out of the way References: <4E431BD8.8060705@redhat.com> <4E43E6BC.90003@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-08/txt/msg00255.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/12/11 04:00, Paulo J. Matos wrote: > On Thu, Aug 11, 2011 at 3:27 PM, Vladimir Makarov > wrote: >> Yes, that is mostly correct. The first could be done by -fweb (if >> the live range where the pseudo is equal to the constant is >> disjoint). The first could be done also by Jeff Law's project >> which can provide splitting not only on the border of loops. >> > > I was thinking that one possible solution in the short term would be > to add a new pass just before IRA which does constant assignment > moves. So, an insn where a register which is assigned a constant can > be moved as much as possible to the place right before the use of > the register or if there's no use of the register inside the current > BB, it can be moved as the last instruction of the BB. I thought we already had code to do this in response to a pseudo not getting a hard reg and the pseudo has an appropriate REG_EQUIV note on its assignment insn. jeff -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJORVC7AAoJEBRtltQi2kC7zKAH/iesdm/aO4C9OQMfwGgZ6Xht PvStoxWtOUo5JuafwYlRppi67rld+PBnBz65te6TauSwSA6WwJ4tzfSAQ3IyLYZB /k8lgfCRt46XGwAHr3Zva5nOC/zfYyyoMRz8Z6XpfoGsnwt4Zq3Kej9iOXFQZleo PWMHKiQDi6MxBPjGChTME0ct/yvClG/qb5WjbqPeLCLXnn0/VYmvicajvNi/Dscf fYtS8wpw8Kh5ylQ0mKmTsRWRQvXZZToDazqngFsOSxVe+Yoxssk40A9UIJrB1xAP Z7kuJ/i8hHYQkeeHaFd84wKrgHl4Ciue/58K2Nm6H7T93hJstt6eT/rLNCsuV2g= =mG8D -----END PGP SIGNATURE-----