expr.c (convert_move): Use simplify_gen_subreg to make SUBREG so we avoid SUBREGing memory.

* expr.c (convert_move): Use simplify_gen_subreg to make SUBREG so
        we avoid SUBREGing memory.

From-SVN: r46722
This commit is contained in:
Aldy Hernandez 2001-11-02 22:17:11 +00:00 committed by Aldy Hernandez
parent bb33f166a5
commit bafe341a4f
2 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,8 @@
* expmed.c (store_bit_field): Use simplify_gen_subreg to make
SUBREG so we avoid SUBREGing memory.
* expmed.c (store_bit_field): Same.
2001-11-02 DJ Delorie <dj@redhat.com>
* config/rs6000/rs6000.c (rs6000_emit_move): Make sure that

View File

@ -544,9 +544,9 @@ convert_move (to, from, unsignedp)
abort ();
if (VECTOR_MODE_P (to_mode))
from = gen_rtx_SUBREG (to_mode, from, 0);
from = simplify_gen_subreg (to_mode, from, GET_MODE (from), 0);
else
to = gen_rtx_SUBREG (from_mode, to, 0);
to = simplify_gen_subreg (from_mode, to, GET_MODE (to), 0);
emit_move_insn (to, from);
return;