This is the mail archive of the gcc-patches@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: RFC: remove find_replacement. (pr24912 / pr25335)


Joern RENNECKE <joern.rennecke@st.com> writes:

> You introduced find_replacement in April 1992, presumably to solve the
> problem that the replacements are not applied at the time that reloads
> are being made.  Since then its use has spread over a number of
> functions in the middle-end and in the backends, yet still new code is
> introduced that doesn't work as it is called while replacements are
> pending, but it doesn't use find_replacements.  I think a much simpler
> solution, which should also be more robust in the long term, is to
> apply all the replacements before we start to emit reload insns.

Excellent idea.

Ian


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