This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Patch ping


On Wed, Dec 03, 2003 at 11:30:13AM -0500, Andrew MacLeod wrote:
> bool
> cleanup_cond_expr_graph (basic_block bb, block_stmt_iterator bsi)
> {
>  <...>
>   if (taken_edge->flags & EDGE_TRUE_VALUE)
>     bsi_replace (&bsi, COND_EXPR_THEN (cond_expr), false);
>   else if (taken_edge->flags & EDGE_FALSE_VALUE)
>     bsi_replace (&bsi, COND_EXPR_ELSE (cond_expr), false);
>   else
>     abort ();

This, incidentally, is a bug.  We *cannot* use bsi_replace here.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]