From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2116 invoked by alias); 6 Apr 2010 16:37:59 -0000 Received: (qmail 2098 invoked by uid 22791); 6 Apr 2010 16:37:56 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=BAYES_05,SPF_FAIL X-Spam-Check-By: sourceware.org Received: from mx20.gnu.org (HELO mx20.gnu.org) (199.232.41.8) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 06 Apr 2010 16:37:52 +0000 Received: from mail.codesourcery.com ([38.113.113.100]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NzBmf-0007iq-SL for gcc@gcc.gnu.org; Tue, 06 Apr 2010 12:37:50 -0400 Received: (qmail 27492 invoked from network); 6 Apr 2010 16:37:45 -0000 Received: from unknown (HELO ?192.168.2.100?) (wilson@127.0.0.2) by mail.codesourcery.com with ESMTPA; 6 Apr 2010 16:37:45 -0000 Message-ID: <4BBB6358.4050602@codesourcery.com> Date: Tue, 06 Apr 2010 16:37:00 -0000 From: Jim Wilson User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc11 Thunderbird/3.0.4 MIME-Version: 1.0 To: roy rosen CC: gcc@gcc.gnu.org Subject: Re: lower subreg optimization References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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: 2010-04/txt/msg00088.txt.bz2 On 04/06/2010 02:24 AM, roy rosen wrote: > (insn 33 32 34 7 a.c:25 (set (subreg:V2HI (reg:V4HI 114) 0) > (plus:V2HI (subreg:V2HI (reg:V4HI 112) 0) > (subreg:V2HI (reg:V4HI 113) 0))) 118 {addv2hi3} (nil)) Only subregs are decomposed. So use vec_select instead of subreg. I see you already have a vec_concat to combine the two v2hi into one v4hi, so there is no need for the subreg in the dest. You should try eliminating that first and see if that helps. If that isn't enough, then replace the subregs in the source with vec_select operations. Jim