From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25634 invoked by alias); 20 May 2009 16:07:10 -0000 Received: (qmail 25618 invoked by uid 22791); 20 May 2009 16:07:08 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_15,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; Wed, 20 May 2009 16:07:05 +0000 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M6oJq-0000IL-J7 for gcc@gcc.gnu.org; Wed, 20 May 2009 12:07:02 -0400 Received: (qmail 637 invoked from network); 20 May 2009 15:58:12 -0000 Received: from unknown (HELO ?192.168.0.2?) (mitchell@127.0.0.2) by mail.codesourcery.com with ESMTPA; 20 May 2009 15:58:12 -0000 Message-ID: <4A14288E.4060304@codesourcery.com> Date: Wed, 20 May 2009 18:15:00 -0000 From: Mark Mitchell User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Richard Guenther CC: gcc-patches@gcc.gnu.org, gcc@gcc.gnu.org Subject: Re: [PATCH][RFC] Adjust the middle-end memory model References: <4A12F125.6030309@codesourcery.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 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: 2009-05/txt/msg00518.txt.bz2 Richard Guenther wrote: >> void f(float *f, int *n) { >> for (int i = 0; i < *n; ++i) { >> f[i] *= 2; >> } >> } > The difference is if you want to sink a load from *n beyond the > store to f[i] - in which case you ask if there is an anti-dependence > which we cannot exclude in this case (no TBAA is allowed here). By "not allowed", you don't mean "would be an invalid optimization", but rather "will no longer be done by GCC", right? -- Mark Mitchell CodeSourcery mark@codesourcery.com (650) 331-3385 x713