unroll.c (verify_addresses): Use validate_replace_rtx to undo the changes.

* unroll.c (verify_addresses): Use validate_replace_rtx to undo the
changes.  Abort if the undo fails.

From-SVN: r20404
This commit is contained in:
Richard Earnshaw 1998-06-10 09:49:30 +00:00 committed by Richard Earnshaw
parent bfed8dac97
commit 951930309f
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Wed Jun 10 09:47:13 1998 Richard Earnshaw (rearnsha@arm.com)
* unroll.c (verify_addresses): Use validate_replace_rtx to undo the
changes. Abort if the undo fails.
Wed Jun 10 08:56:27 1998 John Carr <jfc@mit.edu>
* reload1.c (reload_cse_simplify_operands): Do not call gen_rtx_REG

View File

@ -2664,9 +2664,10 @@ verify_addresses (v, giv_inc, unroll_number)
|| ! validate_replace_rtx (*v->location, last_addr, v->insn))
ret = 0;
/* Now put things back the way they were before. This will always
/* Now put things back the way they were before. This should always
succeed. */
validate_change (v->insn, v->location, orig_addr, 0);
if (! validate_replace_rtx (*v->location, orig_addr, v->insn))
abort ();
return ret;
}