From: Stan Cox Date: Mon, 9 Dec 1996 21:37:37 +0000 (+0000) Subject: (jump_optimize): Don't move initialization if there is a label between it and the... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19f5ce60f80423710b14e915da94b6f42ab25801;p=gcc.git (jump_optimize): Don't move initialization if there is a label between it and the jump for if (foo) bar++ to bar += (foo !=0) From-SVN: r13257 --- diff --git a/gcc/jump.c b/gcc/jump.c index ba06022ce17..839421f5a0f 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -1494,6 +1494,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan) into our sequence. */ if ((temp5 = prev_active_insn (insn)) != 0 + && no_labels_between_p (temp5, insn) && GET_CODE (temp5) == INSN && (temp6 = single_set (temp5)) != 0 && rtx_equal_p (temp2, SET_DEST (temp6))