Commit d3903c22 by Jeffrey A Law Committed by Jeff Law

gcse.c (pre_delete): Fix code to determine the mode of the reaching pseudo register.

        * gcse.c (pre_delete): Fix code to determine the mode of
        the reaching pseudo register.

From-SVN: r20134
parent 1541dfa5
Fri May 29 01:48:25 1998 Jeffrey A Law (law@cygnus.com)
* gcse.c (pre_delete): Fix code to determine the mode of
the reaching pseudo register.
Fri May 29 01:07:28 1998 Bernd Schmidt <crux@Pool.Informatik.RWTH-Aachen.DE> Fri May 29 01:07:28 1998 Bernd Schmidt <crux@Pool.Informatik.RWTH-Aachen.DE>
* Makefile.in (GEN): Add gencheck * Makefile.in (GEN): Add gencheck
......
...@@ -4548,15 +4548,17 @@ pre_delete () ...@@ -4548,15 +4548,17 @@ pre_delete ()
if (TEST_BIT (ppin, indx)) if (TEST_BIT (ppin, indx))
{ {
/* Create a pseudo-reg to store the result of reaching
expressions into. */
if (expr->reaching_reg == NULL)
expr->reaching_reg = gen_reg_rtx (GET_MODE (expr->expr));
set = single_set (insn); set = single_set (insn);
if (! set) if (! set)
abort (); abort ();
/* Create a pseudo-reg to store the result of reaching
expressions into. Get the mode for the new pseudo
from the mode of the original destination pseudo. */
if (expr->reaching_reg == NULL)
expr->reaching_reg
= gen_reg_rtx (GET_MODE (SET_DEST (set)));
/* In theory this should never fail since we're creating /* In theory this should never fail since we're creating
a reg->reg copy. a reg->reg copy.
......
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