This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: reloading sums
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: Joern Rennecke <joern dot rennecke at superh dot com>
- Cc: gcc at gcc dot gnu dot org,gcc-patches at gcc dot gnu dot org
- Date: Thu, 19 Jun 2003 21:41:08 +0200
- Subject: Re: RFC: reloading sums
- References: <3EF20566.E6A5B8F2@superh.com> <3EF20A3D.F727AF2F@superh.com>
> * reload.c (can_reload_into): New function.
+ can_reload_into (rtx in, int regno, enum machine_mode mode)
+ {
+ rtx dst, test_insn;
+ int r = 0;
+ struct recog_data save_recog_data;
+
+ /* For matching constraints, we often get notional input reloads where
+ we want to use the original register as the reload register. Speed
+ this up, since it trivially works. */
+ if (in->code == REG)
+ return 1;
+
+ /* To test MEMs properly, we'd have to take into account all the reloads
+ that are already scheduled, which can become quite complicated.
+ And since we've already handled addres reloads for this MEM, it
+ should always succeed anyway. */
+ if (in->code == MEM)
+ return 1;
You don't like GET_CODE? :-)
--
Eric Botcazou