* predict.c: remove unnecessary code.
@ 2002-08-14 16:52 Krister Walfridsson
0 siblings, 0 replies; only message in thread
From: Krister Walfridsson @ 2002-08-14 16:52 UTC (permalink / raw)
To: gcc-patches
I noticed this unnecesary code in process_note_predictions().
Bootstrapped and regression tested on i386-unknown-netbsdelf1.6E.
Ok to install?
/Krister
2002-08-14 Krister Walfridsson <cato@df.lth.se>
* predict.c (process_note_predictions): Remove unnecessary loop
and variables.
Index: gcc/gcc/predict.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/predict.c,v
retrieving revision 1.73
diff -c -3 -p -r1.73 predict.c
*** gcc/gcc/predict.c 21 Jul 2002 22:01:58 -0000 1.73
--- gcc/gcc/predict.c 14 Aug 2002 23:33:58 -0000
*************** process_note_predictions (bb, heads, dom
*** 783,794 ****
dominance_info post_dominators;
{
rtx insn;
- edge e;
/* Additionaly, we check here for blocks with no successors. */
int contained_noreturn_call = 0;
int was_bb_head = 0;
- int noreturn_block = 1;
for (insn = bb->end; insn;
was_bb_head |= (insn == bb->head), insn = PREV_INSN (insn))
--- 783,792 ----
*************** process_note_predictions (bb, heads, dom
*** 819,827 ****
delete_insn (insn);
}
}
- for (e = bb->succ; e; e = e->succ_next)
- if (!(e->flags & EDGE_FAKE))
- noreturn_block = 0;
if (contained_noreturn_call)
{
/* This block ended from other reasons than because of return.
--- 817,822 ----
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-08-14 23:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-14 16:52 predict.c: remove unnecessary code Krister Walfridsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).