From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22839 invoked by alias); 13 May 2003 12:42:34 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 22748 invoked from network); 13 May 2003 12:42:33 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 13 May 2003 12:42:33 -0000 Received: from localhost (tornado.toronto.redhat.com [172.16.14.228]) by touchme.toronto.redhat.com (Postfix) with ESMTP id E2B64800030; Tue, 13 May 2003 08:42:32 -0400 (EDT) Subject: Re: [tree-ssa] Out of SSA status and issues From: Diego Novillo To: Michael Matz Cc: Andrew Macleod , gcc mailing list In-Reply-To: References: Content-Type: text/plain Organization: Red Hat Canada Message-Id: <1052829751.27232.220.camel@frodo.toronto.redhat.com> Mime-Version: 1.0 Date: Tue, 13 May 2003 12:42:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2003-05/txt/msg01286.txt.bz2 On Tue, 2003-05-13 at 05:07, Michael Matz wrote: > An indirect reference is not a copy. I don't know if tree-ssa thinks it > is, but it definitely shouldn't. > Why? 1. foo() 2. { 3. int i, *p; 4. 5. p = malloc(); 6. i = *p; 7. return i + 9; 8. } I see nothing wrong in replacing 'i + 9' with '*p + 9'. It would probably not be efficient, but I can't see it being wrong. Not that tree-ssa will do anything with this code, the default type-based aliasing is too conservative, but PTA may disambiguate this. Diego.