diff options
author | Jan Hubicka <jh@suse.cz> | 2004-01-28 15:13:35 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2004-01-28 14:13:35 +0000 |
commit | a544524ad3321ae5c51ae6d1499fc4363afb353d (patch) | |
tree | 7bd03b1e8d0b5de0cd5fbe0b566210a2be8be1fa | |
parent | 1b8f8174462a5cb4f09986979950e3d3759611d8 (diff) | |
download | gcc-a544524ad3321ae5c51ae6d1499fc4363afb353d.zip gcc-a544524ad3321ae5c51ae6d1499fc4363afb353d.tar.gz gcc-a544524ad3321ae5c51ae6d1499fc4363afb353d.tar.bz2 |
gcse.c (bypass_block): Prevent edges to be unified when we are about to emit compenstation code.
* gcse.c (bypass_block): Prevent edges to be unified when we are
about to emit compenstation code.
From-SVN: r76791
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gcse.c | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 01dea5c..b29c3f3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-01-28 Jan Hubicka <jh@suse.cz> + + * gcse.c (bypass_block): Prevent edges to be unified when we are + about to emit compenstation code. + 2004-01-28 Nick Clifton <nickc@redhat.com> * config/arm/arm.c (arm_expand_builtin): Force second argument of @@ -4874,6 +4874,21 @@ bypass_block (basic_block bb, rtx setcc, rtx jump) else dest = NULL; + /* Avoid unification of the edge with other edges from original + branch. We would end up emitting the instruction on "both" + edges. */ + + if (dest && setcc && !CC0_P (SET_DEST (pat))) + { + edge e2; + for (e2 = e->src->succ; e2; e2 = e2->succ_next) + if (e2->dest == dest) + { + dest = NULL; + break; + } + } + old_dest = e->dest; if (dest != NULL && dest != old_dest |