aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index e0847a8..5c92ec3 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -7637,9 +7637,9 @@ loop_regs_update (loop, seq)
}
else
{
- rtx set = single_set (seq);
- if (set && GET_CODE (SET_DEST (set)) == REG)
- record_base_value (REGNO (SET_DEST (set)), SET_SRC (set), 0);
+ if (GET_CODE (seq) == SET
+ && GET_CODE (SET_DEST (seq)) == REG)
+ record_base_value (REGNO (SET_DEST (seq)), SET_SRC (seq), 0);
}
}