This is the mail archive of the
mailing list for the GCC project.
Re: CLOBBER MEM in stack ops on x86
- From: Richard Henderson <rth at redhat dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 21 Nov 2001 15:58:27 -0800
- Subject: Re: CLOBBER MEM in stack ops on x86
- References: <10111212332.AA16774@vlsi1.ultra.nyu.edu>
On Wed, Nov 21, 2001 at 06:32:29PM -0500, Richard Kenner wrote:
> Why do stack pops on x86 have CLOBBERs for MEM?
> They don't actually affect MEM at all ...
Not all stack pops do this. I presume you mean
[(set (match_operand:SI 0 "nonimmediate_operand" "=r*m")
(mem:SI (reg:SI 7)))
(set (reg:SI 7)
(plus:SI (reg:SI 7) (const_int 4)))
(clobber (mem:BLK (scratch)))]
[(set_attr "type" "pop")
(set_attr "mode" "SI")])
It's to keep insns with stack frame memory operands from
being scheduled past the stack frame deallocation.