From: Richard Kenner Date: Wed, 22 Jun 1994 23:53:01 +0000 (-0400) Subject: (strength_reduce): When replacing DEST_ADDR givs, make sure resulting X-Git-Tag: misc/cutover-egcs-0~6414 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9abdca9c6fb99f88bc5f8ce846a5cde8db0cdd00;p=thirdparty%2Fgcc.git (strength_reduce): When replacing DEST_ADDR givs, make sure resulting insn is valid. From-SVN: r7529 --- diff --git a/gcc/loop.c b/gcc/loop.c index dc39fdfd3d42..31e7a6e79cee 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -3851,7 +3851,7 @@ strength_reduce (scan_start, end, loop_top, insn_count, if (v->giv_type == DEST_ADDR) /* Store reduced reg as the address in the memref where we found this giv. */ - *v->location = v->new_reg; + validate_change (v->insn, v->location, v->new_reg, 0); else if (v->replaceable) { reg_map[REGNO (v->dest_reg)] = v->new_reg;