From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7366 invoked by alias); 20 Jun 2011 09:22:14 -0000 Received: (qmail 5993 invoked by uid 22791); 20 Jun 2011 09:19:33 -0000 X-SWARE-Spam-Status: No, hits=-3.3 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 20 Jun 2011 09:19:17 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) by mx2.suse.de (Postfix) with ESMTP id F1DA44844E; Mon, 20 Jun 2011 11:19:15 +0200 (CEST) Date: Mon, 20 Jun 2011 10:24:00 -0000 From: Richard Guenther To: Michael Matz Cc: Richard Guenther , Mike Stump , Jason Merrill , gcc-patches List Subject: Re: RFA (fold): PATCH for c++/49290 (folding *(T*)(ar+10)) In-Reply-To: Message-ID: References: <4DEDB98F.6010508@redhat.com> <4DEE2DCF.7020905@redhat.com> <4DEE3484.8030101@redhat.com> <4DF11FBC.3010304@redhat.com> <4DF223D4.3080700@redhat.com> <4DF22656.9050700@redhat.com> <37B61697-B4A5-49B6-87C4-AD361A86F752@comcast.net> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 X-SW-Source: 2011-06/txt/msg01435.txt.bz2 On Fri, 17 Jun 2011, Michael Matz wrote: > Hi, > > On Thu, 16 Jun 2011, Richard Guenther wrote: > > > > If people want to not create useless conversions in the first place, > > > though, I suspect there are lots of places that create useless > > > conversions in the compiler. > > > > Yeah, the above looks it comes from the frontends - gimplification > > should strip this conversion, if it doesn't that is a bug ;) > > Well, Mike said this view_convert_expr actually is on the LHS of an > assignment. I wouldn't be surprised if nobody strips "useless" > conversions of LHSes, exactly because such things on a LHS are no > conversions. For vectors we can move them to the rhs instead. Richard.