This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
bb-reorder bugfix
- To: <gcc-patches at gcc dot gnu dot org>
- Subject: bb-reorder bugfix
- From: Bernd Schmidt <bernds at redhat dot com>
- Date: Tue, 10 Jul 2001 15:58:26 +0100 (BST)
Found this while trying to figure out why bb-reorder was ignoring some
predictions I added in predict.c. We were detecting the same edge as
taken branch and as fallthrough.
Bootstrapped on i686-linux.
Bernd
+ * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
+ edge detection.
Index: bb-reorder.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/bb-reorder.c,v
retrieving revision 1.28
diff -c -p -r1.28 bb-reorder.c
*** bb-reorder.c 2001/03/28 11:03:48 1.28
--- bb-reorder.c 2001/07/07 22:44:07
*************** make_reorder_chain_1 (bb, prev)
*** 409,415 ****
{
if (e->flags & EDGE_FALLTHRU)
e_fall = e;
! if (! (e->flags & EDGE_EH))
e_taken = e;
}
--- 409,415 ----
{
if (e->flags & EDGE_FALLTHRU)
e_fall = e;
! else if (! (e->flags & EDGE_EH))
e_taken = e;
}