From c4f81e4a6b4a1ff4774c8836de4a7241c57b278f Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 26 Jul 2001 00:23:09 +0200 Subject: predict.c (estimate_probability): Avoid duplicated predictions. * predict.c (estimate_probability): Avoid duplicated predictions. * loop.c (find_and_verify_loops): Grok multiple barriers. From-SVN: r44369 --- gcc/loop.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gcc/loop.c') diff --git a/gcc/loop.c b/gcc/loop.c index db1ec9df7a3..3584fe4c91b 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -2676,6 +2676,14 @@ find_and_verify_loops (f, loops) = JUMP_LABEL (insn) ? JUMP_LABEL (insn) : get_last_insn (); struct loop *target_loop = uid_loop[INSN_UID (target)]; rtx loc, loc2; + rtx tmp; + + /* Search for possible garbage past the conditional jumps + and look for latest barrier. */ + for (tmp = last_insn_to_move; + tmp && GET_CODE (tmp) != CODE_LABEL; tmp = NEXT_INSN (tmp)) + if (GET_CODE (tmp) == BARRIER) + last_insn_to_move = tmp; for (loc = target; loc; loc = PREV_INSN (loc)) if (GET_CODE (loc) == BARRIER -- cgit v1.2.1