Commit 77e23325 by Andrew Pinski Committed by Andrew Pinski

loop-unswitch.c (unswitch_single_loop): Free bbs at the end.

2004-05-13  Andrew Pinski  <pinskia@physics.uc.edu>

        * loop-unswitch.c (unswitch_single_loop): Free bbs at
        the end.

From-SVN: r81808
parent 07a1f795
2004-05-13 Andrew Pinski <pinskia@physics.uc.edu> 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
* loop-unswitch.c (unswitch_single_loop): Free bbs at
the end.
* final.c (shorten_branches): Free uid_shuid before * final.c (shorten_branches): Free uid_shuid before
reallocating it. reallocating it.
......
...@@ -379,6 +379,8 @@ unswitch_single_loop (struct loops *loops, struct loop *loop, ...@@ -379,6 +379,8 @@ unswitch_single_loop (struct loops *loops, struct loop *loop,
free_EXPR_LIST_node (conds); free_EXPR_LIST_node (conds);
if (rcond) if (rcond)
free_EXPR_LIST_node (rconds); free_EXPR_LIST_node (rconds);
free (bbs);
} }
/* Unswitch a LOOP w.r. to given basic block UNSWITCH_ON. We only support /* Unswitch a LOOP w.r. to given basic block UNSWITCH_ON. We only support
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment