summaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2002-09-08 18:32:31 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2002-09-08 18:32:31 +0000
commit978dc23eff054e366cfc305fd6caa39597fa9032 (patch)
treeca4fc1bb6a60377368ad40416a7ee08a4aaca40f /gcc/loop.c
parenta6e8541314dc422496ba2518435af75ebf66d011 (diff)
downloadgcc-978dc23eff054e366cfc305fd6caa39597fa9032.tar.gz
PR optimization/6405
* unroll.c (loop_iterations): last_loop_insn should be the previous non-note instruction before loop->end. * loop.c (strength_reduce): The conditional jump is the last non-note instruction before loop->end (as above). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56956 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index c601f5b84e6..24b16aa9a90 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -5348,7 +5348,7 @@ strength_reduce (loop, flags)
unsigned HOST_WIDE_INT n
= loop_info->n_iterations / loop_info->unroll_number;
if (n > 1)
- predict_insn (PREV_INSN (loop->end), PRED_LOOP_ITERATIONS,
+ predict_insn (prev_nonnote_insn (loop->end), PRED_LOOP_ITERATIONS,
REG_BR_PROB_BASE - REG_BR_PROB_BASE / n);
}