summaryrefslogtreecommitdiff
path: root/gcc/loop-unswitch.c
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-25 21:46:18 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-25 21:46:18 +0000
commit0dc32828d5ec14a8b00d1f01356c377e4cf24b6f (patch)
treebae5635c52da0ceca84728ad777ac4425db8d162 /gcc/loop-unswitch.c
parenta4cb69f8ebc0f0f7e4e5aa52b1324cfff579cf15 (diff)
downloadgcc-0dc32828d5ec14a8b00d1f01356c377e4cf24b6f.tar.gz
* cfgloopmanip.c (loopify): Take two more arguments true_edge
and false_edge. * cfgloop.h: Adjust the corresponding prototype. * loop-unswitch.c (unswitch_loop): Adjust a call to loopify. * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89555 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop-unswitch.c')
-rw-r--r--gcc/loop-unswitch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/loop-unswitch.c b/gcc/loop-unswitch.c
index 49608151ff7..d1d49b2a38f 100644
--- a/gcc/loop-unswitch.c
+++ b/gcc/loop-unswitch.c
@@ -474,7 +474,8 @@ unswitch_loop (struct loops *loops, struct loop *loop, basic_block unswitch_on,
/* Loopify from the copy of LOOP body, constructing the new loop. */
nloop = loopify (loops, latch_edge,
- EDGE_PRED (loop->header->rbi->copy, 0), switch_bb, true);
+ EDGE_PRED (loop->header->rbi->copy, 0), switch_bb,
+ BRANCH_EDGE (switch_bb), FALLTHRU_EDGE (switch_bb), true);
/* Remove branches that are now unreachable in new loops. */
remove_path (loops, true_edge);