summaryrefslogtreecommitdiff
path: root/gcc/loop-unroll.c
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-08 09:47:28 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-08 09:47:28 +0000
commita964683a51fa8f998342ebc0f96b6e9f06416c9d (patch)
tree2049f3fc3ca464bc5ba32b5c28fce7018ba25366 /gcc/loop-unroll.c
parentf484a6fe8024ec85309fd29671aa84e76851ef77 (diff)
downloadgcc-a964683a51fa8f998342ebc0f96b6e9f06416c9d.tar.gz
* gcse.c (bypass_block, bypass_conditional_jumps): Do not create
irreducible loops. * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible loops info correctly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63980 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop-unroll.c')
-rw-r--r--gcc/loop-unroll.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/loop-unroll.c b/gcc/loop-unroll.c
index 55899a97c49..e39bdbcbffb 100644
--- a/gcc/loop-unroll.c
+++ b/gcc/loop-unroll.c
@@ -895,7 +895,8 @@ unroll_loop_runtime_iterations (loops, loop)
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 = make_edge (swtch, preheader,
+ swtch->succ->flags & EDGE_IRREDUCIBLE_LOOP);
e->probability = p;
}
}
@@ -925,7 +926,8 @@ unroll_loop_runtime_iterations (loops, loop)
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 = make_edge (swtch, preheader,
+ swtch->succ->flags & EDGE_IRREDUCIBLE_LOOP);
e->probability = p;
}