From 9abdca9c6fb99f88bc5f8ce846a5cde8db0cdd00 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 22 Jun 1994 19:53:01 -0400 Subject: [PATCH] (strength_reduce): When replacing DEST_ADDR givs, make sure resulting insn is valid. From-SVN: r7529 --- gcc/loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/loop.c b/gcc/loop.c index dc39fdfd3d4..31e7a6e79ce 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; -- 2.30.2