diff options
author | Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> | 2003-12-27 20:51:17 +0100 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2003-12-27 19:51:17 +0000 |
commit | bf86d71e8a312406735aad4139b5bf7e680b8e83 (patch) | |
tree | c1ac3d0e9b92e39c461d328f289b2cec68f64955 /gcc/loop-unswitch.c | |
parent | 9bd85baa69e57d5363fb9e059cc8f12464ad4379 (diff) | |
download | gcc-bf86d71e8a312406735aad4139b5bf7e680b8e83.zip gcc-bf86d71e8a312406735aad4139b5bf7e680b8e83.tar.gz gcc-bf86d71e8a312406735aad4139b5bf7e680b8e83.tar.bz2 |
re PR rtl-optimization/13159 (FAIL: gcc.c-torture/compile/930621-1.c)
PR opt/13159
* cfgloopanal.c (mark_irreducible_loops): Fix the strongly connected
components detection.
* loop-unswitch.c (unswitch_loop): Preserve simple preheaders.
* gcc.c-torture/compile/20031227-1.c: New test.
From-SVN: r75174
Diffstat (limited to 'gcc/loop-unswitch.c')
-rw-r--r-- | gcc/loop-unswitch.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/loop-unswitch.c b/gcc/loop-unswitch.c index f276b73..25728c2 100644 --- a/gcc/loop-unswitch.c +++ b/gcc/loop-unswitch.c @@ -402,5 +402,9 @@ unswitch_loop (struct loops *loops, struct loop *loop, basic_block unswitch_on) fix_loop_placement (loop); fix_loop_placement (nloop); + /* Preserve the simple loop preheaders. */ + loop_split_edge_with (loop_preheader_edge (loop), NULL_RTX, loops); + loop_split_edge_with (loop_preheader_edge (nloop), NULL_RTX, loops); + return nloop; } |