diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-10-25 21:46:18 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-10-25 21:46:18 +0000 |
commit | 5132abc2a854979cf96b725ee0aaef2cd3121799 (patch) | |
tree | bae5635c52da0ceca84728ad777ac4425db8d162 /gcc/loop-unswitch.c | |
parent | 3401a17fcbee4b9524111a94ddd5208661ad39ce (diff) | |
download | gcc-5132abc2a854979cf96b725ee0aaef2cd3121799.zip gcc-5132abc2a854979cf96b725ee0aaef2cd3121799.tar.gz gcc-5132abc2a854979cf96b725ee0aaef2cd3121799.tar.bz2 |
cfgloopmanip.c (loopify): Take two more arguments true_edge and false_edge.
* 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.
From-SVN: r89555
Diffstat (limited to 'gcc/loop-unswitch.c')
-rw-r--r-- | gcc/loop-unswitch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/loop-unswitch.c b/gcc/loop-unswitch.c index 4960815..d1d49b2 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); |