aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-06-22 19:53:01 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-06-22 19:53:01 -0400
commit9abdca9c6fb99f88bc5f8ce846a5cde8db0cdd00 (patch)
tree893063bc36ddbbbb5002ee1fb7ae0f5a38bd64b5 /gcc/loop.c
parent49501ea43f867730da38ffaf5923811cd4a5c3b7 (diff)
downloadgcc-9abdca9c6fb99f88bc5f8ce846a5cde8db0cdd00.zip
gcc-9abdca9c6fb99f88bc5f8ce846a5cde8db0cdd00.tar.gz
gcc-9abdca9c6fb99f88bc5f8ce846a5cde8db0cdd00.tar.bz2
(strength_reduce): When replacing DEST_ADDR givs, make sure resulting
insn is valid. From-SVN: r7529
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index dc39fdf..31e7a6e 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;