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]

Re: Useless patterns in alpha.md


> 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


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