From 6979065c1686e69766a0fa871abb68bcfb83b1c6 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Tue, 14 Dec 1999 19:54:41 +0000 Subject: [PATCH] Avoid reversing bivs with maybe_multiple set. From-SVN: r30929 --- gcc/ChangeLog | 5 +++++ gcc/loop.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7a23bb1c6f6..01016d13e19 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +1999-12-14 Bernd Schmidt + + * loop.c (check_dbra_loop): Can't reverse a biv that has + maybe_multiple set. + 1999-12-14 Nick Clifton * config/arm/arm.c: Add support for -mcpu=arm720 command line diff --git a/gcc/loop.c b/gcc/loop.c index 9d55f815281..573a76aad6a 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -7953,6 +7953,7 @@ check_dbra_loop (loop_end, insn_count, loop_start, loop_info) for (bl = loop_iv_list; bl; bl = bl->next) { if (bl->biv_count == 1 + && ! bl->biv->maybe_multiple && bl->biv->dest_reg == XEXP (comparison, 0) && ! reg_used_between_p (regno_reg_rtx[bl->regno], bl->biv->insn, first_compare))