This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: MEM flags and stack temps
- To: jbuck at synopsys dot com
- Subject: Re: MEM flags and stack temps
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Thu, 16 Nov 00 17:25:38 EST
- Cc: gcc at gcc dot gnu dot org
This is possibly naive, since I'm not familiar enough with the
relevant back end structures. But what if the offset calculation
showed up as its own RTL object, computing an address-register-like
pseudo which is in turn "read" by the addressof(stack slot) construct?
It would then be cse'd, and if all of the addressof's for that stack
slot are removed, these offsets would then be dead, and eliminated by
dce.
But you can't know if the offset is too large enough. Most of them won't be.