RFC: reloading sums

Eric Botcazou ebotcazou@libertysurf.fr
Thu Jun 19 20:27:00 GMT 2003


>         * 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



More information about the Gcc mailing list