diff options
author | Michael Meissner <meissner@cygnus.com> | 1999-02-06 00:46:54 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-02-05 17:46:54 -0700 |
commit | 3603fb785f5e7fd3e2e618186aaaebe671ea5a39 (patch) | |
tree | b7178d810ca8e09610f05458a5c3152e2600e979 /gcc | |
parent | 5f3db57e5223051200369d2f799d49119ac24b32 (diff) | |
download | gcc-3603fb785f5e7fd3e2e618186aaaebe671ea5a39.zip gcc-3603fb785f5e7fd3e2e618186aaaebe671ea5a39.tar.gz gcc-3603fb785f5e7fd3e2e618186aaaebe671ea5a39.tar.bz2 |
loop.c (check_dbra_loop): A store using an address giv for which we have no life information is not...
* loop.c (check_dbra_loop): A store using an address giv for which
we have no life information is not reversible.
From-SVN: r25051
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/loop.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1fdb2f0..1bb6c99 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +1999-02-05 Michael Meissner <meissner@cygnus.com> + + * loop.c (check_dbra_loop): A store using an address giv for which + we have no life information is not reversible. + Fri Feb 5 17:08:01 1999 Dave Brolley <brolley@cygnus.com> * function.c (fixup_var_refs): Scan catch_clauses too. @@ -7713,8 +7713,9 @@ check_dbra_loop (loop_end, insn_count, loop_start, loop_info) if (v->giv_type == DEST_REG && reg_mentioned_p (v->dest_reg, XEXP (loop_store_mems, 0)) - && (INSN_LUID (v->insn) - > INSN_LUID (first_loop_store_insn))) + && (INSN_UID (v->insn) >= max_uid_for_loop + || (INSN_LUID (v->insn) + > INSN_LUID (first_loop_store_insn)))) reversible_mem_store = 0; } } |