Dead-code elimination can't remove string copy insns?

Dale Johannesen dalej@apple.com
Tue May 13 00:48:00 GMT 2003


On Monday, May 12, 2003, at 05:26  PM, Zack Weinberg wrote:
> Why can't anything delete these insns? I'm guessing it has something
> to do with the BLKmode memory access, 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.

Can it tell the region's address hasn't been taken and stored somewhere?

> Full dumps on request.  The above snippets are from the .life dump.
> The input file is gcc.dg/const-elim-1.c.



More information about the Gcc mailing list