From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 118342 invoked by alias); 28 Aug 2015 10:15:37 -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 118328 invoked by uid 89); 28 Aug 2015 10:15:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f174.google.com Received: from mail-wi0-f174.google.com (HELO mail-wi0-f174.google.com) (209.85.212.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 28 Aug 2015 10:15:35 +0000 Received: by wieo17 with SMTP id o17so10294669wie.0 for ; Fri, 28 Aug 2015 03:15:32 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.180.23.132 with SMTP id m4mr3413712wif.89.1440756932683; Fri, 28 Aug 2015 03:15:32 -0700 (PDT) Received: by 10.28.30.131 with HTTP; Fri, 28 Aug 2015 03:15:32 -0700 (PDT) In-Reply-To: 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> <55DFC368.3050108@redhat.com> Date: Fri, 28 Aug 2015 11:18:00 -0000 Message-ID: Subject: Re: C++ delayed folding branch review From: Kai Tietz To: Jason Merrill Cc: Kai Tietz , gcc-patches List Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg01780.txt.bz2 2015-08-28 9:19 GMT+02:00 Kai Tietz : > 2015-08-28 4:11 GMT+02:00 Jason Merrill : >> 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? > > Yes, is still passes. To check here for main-variant seems to be more > robust. I commit it to branch, and will do complete > regression-testing for it. Completed regression-testing. No new regressions. Kai