diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-14 07:34:59 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-14 07:34:59 +0000 |
commit | 16bf5dfbddb1cb9607a6e114ec537d8f54592de4 (patch) | |
tree | 1e8da1a5f2954c525fab12a718808715db0502ff /gcc/loop.c | |
parent | 3082466d5f38a673a578ce45432b1087e399195e (diff) | |
download | gcc-16bf5dfbddb1cb9607a6e114ec537d8f54592de4.tar.gz |
* loop.c (strength_reduce): Don't call reg_used_between_p if the
insn from BL2 is after the insn from BL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29393 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/loop.c b/gcc/loop.c index b25734ddaee..dcff6850fbd 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -4056,11 +4056,11 @@ strength_reduce (scan_start, end, loop_top, insn_count, in-between when biv_total_increment returns nonzero both times but we test it here in case some day some real cfg analysis gets used to set always_computable. */ - && ((loop_insn_first_p (bl2->biv->insn, bl->biv->insn) - && no_labels_between_p (bl2->biv->insn, bl->biv->insn)) - || (! reg_used_between_p (bl->biv->src_reg, bl->biv->insn, - bl2->biv->insn) - && no_jumps_between_p (bl->biv->insn, bl2->biv->insn))) + && (loop_insn_first_p (bl2->biv->insn, bl->biv->insn) + ? no_labels_between_p (bl2->biv->insn, bl->biv->insn) + : (! reg_used_between_p (bl->biv->src_reg, bl->biv->insn, + bl2->biv->insn) + && no_jumps_between_p (bl->biv->insn, bl2->biv->insn))) && validate_change (bl->biv->insn, &SET_SRC (single_set (bl->biv->insn)), copy_rtx (src), 0)) |