recog.c (split_all_insns): Run cleanup_subreg_operands after reload.
authorRichard Henderson <rth@gcc.gnu.org>
Sat, 28 Oct 2000 21:43:29 +0000 (14:43 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 28 Oct 2000 21:43:29 +0000 (14:43 -0700)
        * recog.c (split_all_insns): Run cleanup_subreg_operands
        after reload.

From-SVN: r37110

gcc/recog.c

index 9492180ba59cfbf09c4602b000ab341f636321b2..5c45cdb683e7c93a69eb958d3fa8125636e738a0 100644 (file)
@@ -2757,6 +2757,19 @@ split_all_insns (upd_life)
                      bb->end = last;
                      break;
                    }
+
+                 /* ??? Coddle to md files that generate subregs in post-
+                    reload splitters instead of computing the proper 
+                    hard register.  */
+                 if (reload_completed)
+                   while (1)
+                     {
+                       if (INSN_P (first))
+                         cleanup_subreg_operands (first);
+                       if (first == last)
+                         break;
+                       first = NEXT_INSN (first);
+                     }
                }
            }