From: rth Date: Wed, 22 Aug 2001 08:13:00 +0000 (+0000) Subject: * flow.c (flow_find_cross_jump): Don't consider unconditional X-Git-Tag: upstream/4.9.2~92468 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39068549063954805cce0d684635c7eb050b3394;p=platform%2Fupstream%2Flinaro-gcc.git * flow.c (flow_find_cross_jump): Don't consider unconditional return insns for commoning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45101 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e8c7eea..6e5858d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2001-08-21 Richard Henderson + * flow.c (flow_find_cross_jump): Don't consider unconditional + return insns for commoning. + * final.c (compute_alignments): Fix typo. * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults. diff --git a/gcc/flow.c b/gcc/flow.c index 3177e65..312bab7 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -3484,10 +3484,12 @@ flow_find_cross_jump (mode, bb1, bb2, f1, f2) need to be compared for equivalence, which we'll do below. */ i1 = bb1->end; - if (onlyjump_p (i1)) + if (onlyjump_p (i1) + || (returnjump_p (i1) && !side_effects_p (PATTERN (i1)))) i1 = PREV_INSN (i1); i2 = bb2->end; - if (onlyjump_p (i2)) + if (onlyjump_p (i2) + || (returnjump_p (i2) && !side_effects_p (PATTERN (i2)))) i2 = PREV_INSN (i2); last1 = afterlast1 = last2 = afterlast2 = NULL_RTX;