This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
predict.c: remove unnecessary code.
- From: Krister Walfridsson <cato at df dot lth dot se>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 15 Aug 2002 01:52:56 +0200 (MEST)
- Subject: predict.c: remove unnecessary code.
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 ----