aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorMichael Hayes <mhayes@redhat.com>2001-01-07 09:59:09 +0000
committerMichael Hayes <m.hayes@gcc.gnu.org>2001-01-07 09:59:09 +0000
commit30a1181af5180982e83635b29c4bca55eae25bad (patch)
treee21b5f81bfa8ab46674cee071be9be319f47bf83 /gcc/loop.c
parentcabf38914c6f95b661531b8a5544c894fd2e1260 (diff)
downloadgcc-30a1181af5180982e83635b29c4bca55eae25bad.zip
gcc-30a1181af5180982e83635b29c4bca55eae25bad.tar.gz
gcc-30a1181af5180982e83635b29c4bca55eae25bad.tar.bz2
* loop.c (emit_iv_add_mult): Use single_set to examine new insn.
From-SVN: r38764
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index 51ca938..ce522a0 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -6904,9 +6904,12 @@ emit_iv_add_mult (b, m, a, reg, insert_before)
record_base_value (REGNO (SET_DEST (set)), SET_SRC (set), 0);
}
}
- else if (GET_CODE (seq) == SET
- && GET_CODE (SET_DEST (seq)) == REG)
- record_base_value (REGNO (SET_DEST (seq)), SET_SRC (seq), 0);
+ 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);
+ }
}
/* Similar to emit_iv_add_mult, but compute cost rather than emitting