From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 40017 invoked by alias); 28 Aug 2015 02:12:00 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 40005 invoked by uid 89); 28 Aug 2015 02:11:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 28 Aug 2015 02:11:58 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 29E4E3B3C6; Fri, 28 Aug 2015 02:11:57 +0000 (UTC) Received: from [10.10.116.36] (ovpn-116-36.rdu2.redhat.com [10.10.116.36]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t7S2BrQ4010130; Thu, 27 Aug 2015 22:11:54 -0400 Subject: Re: C++ delayed folding branch review To: Kai Tietz References: <557A5214.7060106@redhat.com> <55B911DD.30105@redhat.com> <55BA5667.9040200@redhat.com> <55BAACF9.7040707@redhat.com> <597173047.4338388.1438379666336.JavaMail.zimbra@redhat.com> <55BEE4CE.9070706@redhat.com> <55BF8B2B.9040001@redhat.com> <55DE7C55.6030207@redhat.com> <55DF1042.9020603@redhat.com> Cc: Kai Tietz , gcc-patches List From: Jason Merrill Message-ID: <55DFC368.3050108@redhat.com> Date: Fri, 28 Aug 2015 03:03:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-08/txt/msg01760.txt.bz2 On 08/27/2015 02:12 PM, Kai Tietz wrote: > + else if (TREE_CODE (type) == VECTOR_TYPE) > + { > + if (TREE_CODE (arg1) == VECTOR_CST > + && code == NOP_EXPR > + && TYPE_VECTOR_SUBPARTS (type) == VECTOR_CST_NELTS (arg1)) > + { > + tree r = copy_node (arg1); > + TREE_TYPE (arg1) = type; > + return r; > + } > + } I would drop the check on 'code' and add a check that TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (TREE_TYPE (arg1)) Does that still pass? Jason