* [patch, commited] Fix loop updating in split_block
@ 2007-07-26 0:37 Zdenek Dvorak
0 siblings, 0 replies; only message in thread
From: Zdenek Dvorak @ 2007-07-26 0:37 UTC (permalink / raw)
To: gcc-patches
Hello,
when we split a latch block of a loop, the newly created block becomes
the new latch of the loop. This patch makes us update the information
about the loop to reflect this.
Bootstrapped & regtested on i686, commited.
Zdenek
* cfghooks.c (split_block): Fix the information about loop latch.
Index: cfghooks.c
===================================================================
*** cfghooks.c (revision 126869)
--- cfghooks.c (working copy)
*************** split_block (basic_block bb, void *i)
*** 432,438 ****
}
if (current_loops != NULL)
! add_bb_to_loop (new_bb, bb->loop_father);
return make_single_succ_edge (bb, new_bb, EDGE_FALLTHRU);
}
--- 432,442 ----
}
if (current_loops != NULL)
! {
! add_bb_to_loop (new_bb, bb->loop_father);
! if (bb->loop_father->latch == bb)
! bb->loop_father->latch = new_bb;
! }
return make_single_succ_edge (bb, new_bb, EDGE_FALLTHRU);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-25 23:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-26 0:37 [patch, commited] Fix loop updating in split_block Zdenek Dvorak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).