The following fixes a fixup for loops when merging two basic-blocks.
We didn't handle merging two loop headers well which the following
patch addresses.
LTO bootstrapped (which was broken before this patch) and tested
on x86_64-unknown-linux-gnu, applied.
Richard.
2012-12-20 Richard Biener
On Thu, Dec 20, 2012 at 1:43 PM, Richard Biener wrote:
--- 724,746
cfg_hooks-merge_blocks (a, b);
if (current_loops != NULL)
{
! /* If the block we merge into is a loop header do nothing unless ...
*/
! if (a-loop_father-header == a)
! {
!
On Thu, 20 Dec 2012, Steven Bosscher wrote:
On Thu, Dec 20, 2012 at 1:43 PM, Richard Biener wrote:
--- 724,746
cfg_hooks-merge_blocks (a, b);
if (current_loops != NULL)
{
! /* If the block we merge into is a loop header do nothing unless
... */
!