This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Dead-code elimination can't remove string copy insns?
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Michael Matz <matz at suse dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 13 May 2003 09:17:25 -0700
- Subject: Re: Dead-code elimination can't remove string copy insns?
- References: <Pine.LNX.4.44.0305131128250.15564-100000@wotan.suse.de>
Michael Matz <matz@suse.de> 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