[tree-ssa] PATCH to clean up tree-cfg.c
Jason Merrill
jason@redhat.com
Thu Sep 11 15:39:00 GMT 2003
On Thu, 11 Sep 2003 11:08:57 -0400, Jason Merrill <jason@redhat.com> wrote:
> *** tree-ssa-ccp.c.~1~ 2003-09-11 02:24:33.000000000 +0000
> --- tree-ssa-ccp.c 2003-09-11 04:35:58.000000000 +0000
> *************** visit_stmt (tree stmt)
> *** 570,578 ****
> {
> DONT_SIMULATE_AGAIN (stmt) = 1;
>
> ! /* If STMT is a control statement or a computed goto, then mark all
> the output edges executable. */
> ! if (is_ctrl_stmt (stmt) || is_computed_goto (stmt))
> add_outgoing_control_edges (bb_for_stmt (stmt));
> }
>
> --- 570,578 ----
> {
> DONT_SIMULATE_AGAIN (stmt) = 1;
>
> ! /* If STMT is a control structure or a computed goto, then mark all
> the output edges executable. */
> ! if (is_ctrl_structure (stmt) || is_computed_goto (stmt))
> add_outgoing_control_edges (bb_for_stmt (stmt));
> }
>
BTW, I wondered if this test should be changed to just
if (is_ctrl_stmt (stmt))
The difference would be that currently we aren't marking normal gotos--I
don't know whether or not that's intentional.
Jason
More information about the Gcc-patches
mailing list