[Top] [All Lists]

Re: MIPS gas relaxation still doesn't work

To: "Maciej W. Rozycki" <>
Subject: Re: MIPS gas relaxation still doesn't work
From: Jim Wilson <>
Date: 16 Oct 2002 12:43:30 -0400
Cc: Alexandre Oliva <>, "H. J. Lu" <>, "David S. Miller" <>,,,,
In-reply-to: <>
Original-recipient: rfc822;
References: <>
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7
>  Still for "-mips2" the code is not exactly perfect:

I'm guessing that gas is only doing one pass.  When it first looks at the
first load, the nop is necessary.  When it later moves the second load into
the branch delay slot, it doesn't go back and check to see if the nop after
the first load is still necessary.  To get this perfect, we would have to
add global optimization support to gas, so that it considered all nop
insertions and branch delay slot filling all at the same time, and iterated
until it got the best code.  I think it is pointless to do this kind of
stuff in an assembler when we already have an optimizing compiler that already
has infrastructure to do this kind of stuff.


<Prev in Thread] Current Thread [Next in Thread>