OSDN Git Service

(jump_optimize): Insert conditional move after jump insn instead of
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Sep 1996 21:57:27 +0000 (21:57 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Sep 1996 21:57:27 +0000 (21:57 +0000)
before.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12745 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/jump.c

index 61d712c..3ce9520 100644 (file)
@@ -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.  */