aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2002-09-08 18:32:31 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2002-09-08 18:32:31 +0000
commit7df988780bd6c60725929ffea906fc2e160f94df (patch)
treeca4fc1bb6a60377368ad40416a7ee08a4aaca40f /gcc/loop.c
parentf40f4c8ed1f8a962169c6c39a6601cd3ca8ba91d (diff)
downloadgcc-7df988780bd6c60725929ffea906fc2e160f94df.zip
gcc-7df988780bd6c60725929ffea906fc2e160f94df.tar.gz
gcc-7df988780bd6c60725929ffea906fc2e160f94df.tar.bz2
re PR rtl-optimization/6405 (Loop-unrolling related performance regressions)
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). From-SVN: r56956
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 c601f5b..24b16aa 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);
}