aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-09-18 17:57:27 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1996-09-18 17:57:27 -0400
commit777e434cf099a110b010a6bcbdfa431c2eec3636 (patch)
treeaa2ae3d54de1558aa17f3a5c999f0648e5c4dbf0
parentbdd4c95a6f11ca3fc3db217a106dd1f1ad7de6f3 (diff)
downloadgcc-777e434cf099a110b010a6bcbdfa431c2eec3636.zip
gcc-777e434cf099a110b010a6bcbdfa431c2eec3636.tar.gz
gcc-777e434cf099a110b010a6bcbdfa431c2eec3636.tar.bz2
(jump_optimize): Insert conditional move after jump insn instead of
before. From-SVN: r12745
-rw-r--r--gcc/jump.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/jump.c b/gcc/jump.c
index 61d712c..3ce9520 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. */