]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
recog.c (validate_replace_rtx_group): New function.
authorJeff Law <law@gcc.gnu.org>
Sat, 22 Aug 1998 23:21:23 +0000 (17:21 -0600)
committerJeff Law <law@gcc.gnu.org>
Sat, 22 Aug 1998 23:21:23 +0000 (17:21 -0600)

        * recog.c (validate_replace_rtx_group): New function.
        * recog.h (validate_replace_rtx_group): Declare it.
        * regmove.c (optimize_reg_copy_3): If any substitution fails, then undo
        the entire group of substitutions.

From-SVN: r21909

gcc/recog.c

index dd73a46bdc90068ed27c258f80052e5a2585d32e..d472df0d267ec43cdd4a520818976cbc990b4820 100644 (file)
@@ -550,6 +550,16 @@ validate_replace_rtx (from, to, insn)
   return apply_change_group ();
 }
 
+/* Try replacing every occurrence of FROM in INSN with TO.  After all
+   changes have been made, validate by seeing if INSN is still valid.  */
+
+void
+validate_replace_rtx_group (from, to, insn)
+     rtx from, to, insn;
+{
+  validate_replace_rtx_1 (&PATTERN (insn), from, to, insn);
+}
+
 /* Try replacing every occurrence of FROM in INSN with TO, avoiding
    SET_DESTs.  After all changes have been made, validate by seeing if
    INSN is still valid.  */