This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Accept EDGE_CAN_FALLTHRU in verify_flow_info
- From: Josef Zlomek <zlomj9am at artax dot karlin dot mff dot cuni dot cz>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 21 Nov 2002 15:21:30 +0100
- Subject: Re: Accept EDGE_CAN_FALLTHRU in verify_flow_info
- References: <20021121141628.GG10409@kam.mff.cuni.cz>
Hi,
> I've installed this patch as obvious to the basic-improvements-branch.
> It is needed when verify_flow_info is called after mark_can_fallthru.
> I forgot to merge this bit when i was merging the mark_can_fallthru
> originally.
Could you install it to rtlopt-branch too?
I was testing new bb-reorder only with this patch.
Josef
> Thu Nov 21 15:07:20 CET 2002 Jan Hubicka <jh@suse.cz>
> * cfgrtl.c (verify_flow_info): Accept EDGE_CAN_FALLTHRU flag.
> Index: cfgrtl.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/cfgrtl.c,v
> retrieving revision 1.58.6.2
> diff -c -3 -p -r1.58.6.2 cfgrtl.c
> *** cfgrtl.c 17 Sep 2002 22:58:38 -0000 1.58.6.2
> --- cfgrtl.c 21 Nov 2002 14:06:54 -0000
> *************** verify_flow_info ()
> *** 1803,1809 ****
> if (e->flags & EDGE_FALLTHRU)
> n_fallthru++;
>
> ! if ((e->flags & ~EDGE_DFS_BACK) == 0)
> n_branch++;
>
> if (e->flags & EDGE_ABNORMAL_CALL)
> --- 1803,1809 ----
> if (e->flags & EDGE_FALLTHRU)
> n_fallthru++;
>
> ! if ((e->flags & ~(EDGE_DFS_BACK | EDGE_CAN_FALLTHRU)) == 0)
> n_branch++;
>
> if (e->flags & EDGE_ABNORMAL_CALL)