From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26378 invoked by alias); 13 May 2003 16:17:31 -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 26312 invoked from network); 13 May 2003 16:17:30 -0000 Received: from unknown (HELO egil.codesourcery.com) (66.92.14.122) by sources.redhat.com with SMTP; 13 May 2003 16:17:30 -0000 Received: from zack by egil.codesourcery.com with local (Exim 3.36 #1 (Debian)) id 19FcT0-0008F1-00; Tue, 13 May 2003 09:17:26 -0700 To: Michael Matz Cc: gcc@gcc.gnu.org Subject: Re: Dead-code elimination can't remove string copy insns? References: From: Zack Weinberg Date: Tue, 13 May 2003 16:17:00 -0000 In-Reply-To: (Michael Matz's message of "Tue, 13 May 2003 11:30:12 +0200 (CEST)") Message-ID: <87el32om7e.fsf@egil.codesourcery.com> User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-05/txt/msg01325.txt.bz2 Michael Matz writes: >> but the alias information should be sufficient to see that the memory >> region being written into is on the stack, and unused past this insn, >> hence the store is dead and can be deleted. > > It should, but we don't do that currently. Do you have a sense for how hard this would be to implement? Is it something that's done on tree-ssa, so there's no point adding it in mainline? Will Naveen's stack-slot allocator help? zw