From 777e434cf099a110b010a6bcbdfa431c2eec3636 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 18 Sep 1996 17:57:27 -0400 Subject: [PATCH] (jump_optimize): Insert conditional move after jump insn instead of before. From-SVN: r12745 --- gcc/jump.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/jump.c b/gcc/jump.c index 61d712c6929..3ce95201c02 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -1140,7 +1140,9 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan) end_sequence (); emit_insns_before (seq1, temp5); - emit_insns_before (seq2, insn); + /* Insert conditional move after insn, to be sure that + the jump and a possible compare won't be separated */ + emit_insns_after (seq2, insn); /* ??? We can also delete the insn that sets X to A. Flow will do it too though. */ -- 2.30.2