From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111204 invoked by alias); 11 Mar 2015 12:06:51 -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 111195 invoked by uid 89); 11 Mar 2015 12:06:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD 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; Wed, 11 Mar 2015 12:06:50 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t2BC6ldj010099 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 11 Mar 2015 08:06:48 -0400 Received: from [10.10.116.31] ([10.10.116.31]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t2BC6kiM025902; Wed, 11 Mar 2015 08:06:47 -0400 Message-ID: <55002FD3.6050407@redhat.com> Date: Wed, 11 Mar 2015 12:06:00 -0000 From: Jason Merrill User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Aldy Hernandez , gcc-patches Subject: Re: [patch] Optimize empty class copies within a C++ return statement References: <54F8E5D3.4050607@redhat.com> <54F94715.4000208@redhat.com> <54F9D396.3000400@redhat.com> <54FA2046.9090500@redhat.com> <54FA21FD.9040609@redhat.com> <54FA23B4.3090402@redhat.com> <54FA23D7.3030301@redhat.com> <54FDE762.6040409@redhat.com> <54FE5C13.4050904@redhat.com> <54FF7A00.7060705@redhat.com> <54FF8560.2080502@redhat.com> <54FF8730.1080009@redhat.com> <54FF9266.4050903@redhat.com> <54FF9E29.8030704@redhat.com> In-Reply-To: <54FF9E29.8030704@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-03/txt/msg00625.txt.bz2 On 03/10/2015 09:45 PM, Aldy Hernandez wrote: > + gimplify_expr (&TREE_OPERAND (*expr_p, 0), pre_p, post_p, ... > + *expr_p = TREE_OPERAND (*expr_p, 0); Can't you use op0 here, since you're about to throw away the MODIFY_EXPR? OK either way. Jason