This is the mail archive of the
mailing list for the GCC project.
Re: Emit more REG_EQUIV notes for function args (PR42235)
- From: Bernd Schmidt <bernds at codesourcery dot com>
- To: Jeff Law <law at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 14 Jul 2010 23:47:36 +0200
- Subject: Re: Emit more REG_EQUIV notes for function args (PR42235)
- References: <4C3D9C06.email@example.com> <4C3E07EF.firstname.lastname@example.org>
On 07/14/2010 08:54 PM, Jeff Law wrote:
> In theory, given the REG_EQUIV note we ought to get an entry in
> reg_equiv_mem, which the code I'm working on knows it can use instead of
> shoving the pseudo into a stack slot. Effectively, my code will
> rematerialize the argument from the equivalent memory location
> regardless of the number of uses.
Reload can do that already, I think, but it's not prepared to handle a
(zero_extend (mem)) inside a REG_EQUIV note. That should be reasonably
trivial to add if the reg is never set other than in the initializing insn.