This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Useless patterns in alpha.md
- To: Jeffrey A Law <law at cygnus dot com>
- Subject: Re: Useless patterns in alpha.md
- From: Bernd Schmidt <bernds at pathia dot cygnus dot co dot uk>
- Date: Mon, 29 Nov 1999 11:01:46 +0000 (GMT)
- cc: gcc-patches at gcc dot gnu dot org
> What about the use of addition_operation in alpha.md? Presumably it
> is not a problem because it only allows (plus (reg) (const_int)) and
> it uses 'p' which triggers the find_reloads_address stuff?
Yes (assuming (plus (reg) (const_int)) is a valid address on the Alpha).
> Note that I'm trying to get the bounds of what precisely works and what
> doesn't -- other ports (like the PA) suffer from the same problem and if
> I know more about why the change works I can determine if we can also
> kill the special reload patterns for the other ports.
We also no longer modify rtl which is matched by match_operator.
Previously, we could run into trouble with those as well when register
elimination changed the operator (e.g from a MULT to a PLUS), causing the
insn to no longer match the pattern.
Bernd