This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question on insn scheduling and SP


On Tue, Oct 22, 2002 at 01:24:33PM -0400, Richard Kenner wrote:
>     *Two* clobbers are necessary.
> 
> 	(clobber (mem:BLK (scratch)))
> 	(clobber (mem:BLK stack_pointer_rtx))
> 
>     The first has the magic form that conflicts with all memory,
>     the second contains a reference to the stack pointer.  Thus
>     the stack pointer adjustment depends on the second clobber,
>     the second clobber depends on the first clobber, and the
>     first clobber depends on all memory references.
> 
> Well if that's what's going on, why not keep it simpler and have the
> first clobber and then
> 	(use (stack_pointer_rtx))

Because the USE won't conflict with the first clobber.

And if you put them in a PARALLEL, then we're not using
the canonical "bare clobber" that is recognized in a
target-independent manner.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]