This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Proposed major change to combine
- To: amylaar at cambridge dot redhat dot com
- Subject: Re: Proposed major change to combine
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Fri, 9 Mar 01 05:58:34 EST
- Cc: gcc at gcc dot gnu dot org
> 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.
This will break patterns that require rtl to match, like match_dups and
in-out asm memory operands.
Well, the only such cases I can think of where there would be an issue
is if the operand were a MEM whose address was being simplified.
So I think we do indeed have to substitute into the address of a MEM,
instead of making another one, but we don't have to in the major cases
of simplifying expressions, which is where the big win occurs.