Commit c14c6529 by Richard Henderson Committed by Richard Henderson

expr.c (emit_move_insn_1): Revert 17 Dec change.

        * expr.c (emit_move_insn_1): Revert 17 Dec change.  Don't emit
        clobber during or after reload.

From-SVN: r24772
parent 959f341d
Tue Jan 19 21:08:20 1999 Richard Henderson <rth@cygnus.com>
* expr.c (emit_move_insn_1): Revert 17 Dec change. Don't emit
clobber during or after reload.
Tue Jan 19 16:56:03 1999 Richard Henderson <rth@cygnus.com> Tue Jan 19 16:56:03 1999 Richard Henderson <rth@cygnus.com>
* genoutput.c (name_for_index): New function. * genoutput.c (name_for_index): New function.
......
...@@ -2578,17 +2578,13 @@ emit_move_insn_1 (x, y) ...@@ -2578,17 +2578,13 @@ emit_move_insn_1 (x, y)
} }
else else
{ {
/* Show the output dies here. This is only necessary for pseudos. */ /* Show the output dies here. This is necessary for pseudos;
if (x != y) hard regs shouldn't appear here except as return values.
We never want to emit such a clobber after reload. */
if (x != y
&& ! (reload_in_progress || reload_completed))
{ {
rtx reg = x; emit_insn (gen_rtx_CLOBBER (VOIDmode, x));
while (GET_CODE (reg) == SUBREG)
reg = SUBREG_REG (reg);
if (GET_CODE (reg) == REG
&& REGNO (reg) >= FIRST_PSEUDO_REGISTER)
emit_insn (gen_rtx_CLOBBER (VOIDmode, x));
} }
emit_insn (GEN_FCN (mov_optab->handlers[(int) submode].insn_code) emit_insn (GEN_FCN (mov_optab->handlers[(int) submode].insn_code)
...@@ -2618,17 +2614,13 @@ emit_move_insn_1 (x, y) ...@@ -2618,17 +2614,13 @@ emit_move_insn_1 (x, y)
} }
#endif #endif
/* Show the output dies here. This is only necessary for pseudos. */ /* Show the output dies here. This is necessary for pseudos;
if (x != y) hard regs shouldn't appear here except as return values.
We never want to emit such a clobber after reload. */
if (x != y
&& ! (reload_in_progress || reload_completed))
{ {
rtx reg = x; emit_insn (gen_rtx_CLOBBER (VOIDmode, x));
while (GET_CODE (reg) == SUBREG)
reg = SUBREG_REG (reg);
if (GET_CODE (reg) == REG
&& REGNO (reg) >= FIRST_PSEUDO_REGISTER)
emit_insn (gen_rtx_CLOBBER (VOIDmode, x));
} }
for (i = 0; for (i = 0;
......
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