This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Proposed major change to combine
- To: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Subject: Re: Proposed major change to combine
- From: Torbjorn Granlund <tege at swox dot com>
- Date: 08 Mar 2001 16:23:06 +0100
- Cc: gcc at gcc dot gnu dot org
- References: <10103081452.AA03138@vlsi1.ultra.nyu.edu>
kenner@vlsi1.ultra.nyu.edu (Richard Kenner) writes:
I'd like to propose getting rid of the mechanisms where it tries to
substitute things inside RTL and instead always make new RTL. This costs
most memory, but is less of an issue with GC.
Aside from making the code cleaner, the major advantage of this is that then
all the simplification code in combine.c can be moved into simplify-rtx.c and
all the other passes will benefit from it.
Any comments/objections?
Sounds good to me.
I think it would also be good to make combine use rtx_cost for
determining which rewrites to perform. By requiring each change to
decrease the rtx_cost, we could do things recursively without risk of
non-termination.
The would open to allow define_split that generate more insns than
they "consume".
--
Torbjörn