Commit d67b9d00 by Richard Henderson Committed by Richard Henderson

jump.c (jump_optimize_1): Remove inactive but real insns in jump-to-next-insn optimization.

        * jump.c (jump_optimize_1): Remove inactive but real insns
        in jump-to-next-insn optimization.

From-SVN: r33966
parent 97d36f45
2000-05-17 Richard Henderson <rth@cygnus.com> 2000-05-17 Richard Henderson <rth@cygnus.com>
* jump.c (jump_optimize_1): Remove inactive but real insns
in jump-to-next-insn optimization.
2000-05-17 Richard Henderson <rth@cygnus.com>
* toplev.c (rest_of_compilation): Don't call optimize_mode_switching * toplev.c (rest_of_compilation): Don't call optimize_mode_switching
unless OPTIMIZE_MODE_SWITCHING. Conditionally set no_new_pseudos. unless OPTIMIZE_MODE_SWITCHING. Conditionally set no_new_pseudos.
Don't call recompute_reg_usage if no_new_pseudos is true. Don't call recompute_reg_usage if no_new_pseudos is true.
......
...@@ -390,6 +390,13 @@ jump_optimize_1 (f, cross_jump, noop_moves, after_regscan, ...@@ -390,6 +390,13 @@ jump_optimize_1 (f, cross_jump, noop_moves, after_regscan,
{ {
next = next_real_insn (JUMP_LABEL (insn)); next = next_real_insn (JUMP_LABEL (insn));
delete_jump (insn); delete_jump (insn);
/* Remove the "inactive" but "real" insns (i.e. uses and
clobbers) in between here and there. */
temp = insn;
while ((temp = next_real_insn (temp)) != next)
delete_insn (temp);
changed = 1; changed = 1;
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment