* [PATCH] Fix irreducible regions updating
@ 2003-03-07 20:00 Zdenek Dvorak
2003-03-07 22:45 ` Richard Henderson
0 siblings, 1 reply; 2+ messages in thread
From: Zdenek Dvorak @ 2003-03-07 20:00 UTC (permalink / raw)
To: gcc-patches; +Cc: jh, rth
Hello,
irreducible regions were not marked correctly during unrolling with
preconditioning after my last patch; this one fixes it.
Zdenek
Changelog:
* loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
loops info correctly.
Index: loop-unroll.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/loop-unroll.c,v
retrieving revision 1.3
diff -c -3 -p -r1.3 loop-unroll.c
*** loop-unroll.c 5 Mar 2003 22:05:18 -0000 1.3
--- loop-unroll.c 7 Mar 2003 15:10:29 -0000
*************** unroll_loop_runtime_iterations (loops, l
*** 895,901 ****
swtch = loop_split_edge_with (swtch->pred, branch_code, loops);
set_immediate_dominator (loops->cfg.dom, preheader, swtch);
swtch->succ->probability = REG_BR_PROB_BASE - p;
! e = make_edge (swtch, preheader, 0);
e->probability = p;
}
}
--- 895,902 ----
swtch = loop_split_edge_with (swtch->pred, branch_code, loops);
set_immediate_dominator (loops->cfg.dom, preheader, swtch);
swtch->succ->probability = REG_BR_PROB_BASE - p;
! e = make_edge (swtch, preheader,
! swtch->succ->flags & EDGE_IRREDUCIBLE_LOOP);
e->probability = p;
}
}
*************** unroll_loop_runtime_iterations (loops, l
*** 925,931 ****
swtch = loop_split_edge_with (swtch->succ, branch_code, loops);
set_immediate_dominator (loops->cfg.dom, preheader, swtch);
swtch->succ->probability = REG_BR_PROB_BASE - p;
! e = make_edge (swtch, preheader, 0);
e->probability = p;
}
--- 926,933 ----
swtch = loop_split_edge_with (swtch->succ, branch_code, loops);
set_immediate_dominator (loops->cfg.dom, preheader, swtch);
swtch->succ->probability = REG_BR_PROB_BASE - p;
! e = make_edge (swtch, preheader,
! swtch->succ->flags & EDGE_IRREDUCIBLE_LOOP);
e->probability = p;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix irreducible regions updating
2003-03-07 20:00 [PATCH] Fix irreducible regions updating Zdenek Dvorak
@ 2003-03-07 22:45 ` Richard Henderson
0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2003-03-07 22:45 UTC (permalink / raw)
To: Zdenek Dvorak; +Cc: gcc-patches, jh
On Fri, Mar 07, 2003 at 09:00:11PM +0100, Zdenek Dvorak wrote:
> * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
> loops info correctly.
Ok.
r~
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-03-07 22:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-07 20:00 [PATCH] Fix irreducible regions updating Zdenek Dvorak
2003-03-07 22:45 ` Richard Henderson
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).