From 63c906ceb9803a4ce5079a3037e86315b5a874b7 Mon Sep 17 00:00:00 2001 From: kenner Date: Thu, 4 May 2000 13:49:50 +0000 Subject: * rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and MEM_ALIAS_SET. * alias.c (canon_rtx): Don't copy RTX_UNCHANGING_P or MEM_ALIAS_SET when calling MEM_COPY_ATTRIBUTES. * emit-rtl.c (operand_subword, change_address): Likewise. * explow.c (stabilize): Likewise. * expr.c (protect_from_queue, emit_move_insn_1): Likewise. * integrate.c (copy_rtx_and_substitute): Likewise. * combine.c (combine_simplify_rtx): Don't copy RTX_UNCHANGING_P when calling MEM_COPY_ATTRIBUTES. (make_extraction, simplify_shift_const, gen_lowpart_for_combine): Likewise. * cse.c (gen_lowpart_if_possible): Likewise. * function.c (fixup_var_refs_1, purge_addressof_1): Likewise. * optabs.c (gen_move_insn): Likewise. * recog.c (validate_replace_rtx_1): Likewise. * simplify-rtx.c (add_mem_for_addr): Likewise. * stmt.c (expand_anon_union_decl): Likewise. * config/arm/arm.md: Likewise. * config/h8300/h7300.c (fix_bit_operand): Likewise. * config/m88k/m88k.c (legitimize_address, block_move_loop): Likewise. (block_move_no_loop, block_move_sequence): Likewise. * config/rs6000/rs6000.c (expand_block_move_mem): Likewise. * config/alpha/alpha.c (get_aligned_mem): Likewise. Clear MEM_ALIAS_SET. * final.c (alter_subreg): Don't copy MEM_ALIAS_SET when calling MEM_COPY_ATTRIBUTES. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33665 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/combine.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'gcc/combine.c') diff --git a/gcc/combine.c b/gcc/combine.c index 46da6a7ebc4..6c14228d1f1 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -3740,7 +3740,6 @@ combine_simplify_rtx (x, op0_mode, last, in_dest) plus_constant (XEXP (inner, 0), (SUBREG_WORD (x) * UNITS_PER_WORD + endian_offset))); - RTX_UNCHANGING_P (x) = RTX_UNCHANGING_P (inner); MEM_COPY_ATTRIBUTES (x, inner); return x; } @@ -5922,7 +5921,6 @@ make_extraction (mode, inner, pos, pos_rtx, len, offset = pos / BITS_PER_UNIT; new = gen_rtx_MEM (tmode, plus_constant (XEXP (inner, 0), offset)); - RTX_UNCHANGING_P (new) = RTX_UNCHANGING_P (inner); MEM_COPY_ATTRIBUTES (new, inner); } else if (GET_CODE (inner) == REG) @@ -6147,7 +6145,7 @@ make_extraction (mode, inner, pos, pos_rtx, len, { rtx newmem = gen_rtx_MEM (wanted_inner_mode, plus_constant (XEXP (inner, 0), offset)); - RTX_UNCHANGING_P (newmem) = RTX_UNCHANGING_P (inner); + MEM_COPY_ATTRIBUTES (newmem, inner); inner = newmem; } @@ -8914,7 +8912,7 @@ simplify_shift_const (x, code, result_mode, varop, input_count) new = gen_rtx_MEM (tmode, plus_constant (XEXP (varop, 0), count / BITS_PER_UNIT)); - RTX_UNCHANGING_P (new) = RTX_UNCHANGING_P (varop); + MEM_COPY_ATTRIBUTES (new, varop); varop = gen_rtx_combine (code == ASHIFTRT ? SIGN_EXTEND : ZERO_EXTEND, mode, new); @@ -9669,7 +9667,6 @@ gen_lowpart_for_combine (mode, x) - MIN (UNITS_PER_WORD, GET_MODE_SIZE (GET_MODE (x)))); } new = gen_rtx_MEM (mode, plus_constant (XEXP (x, 0), offset)); - RTX_UNCHANGING_P (new) = RTX_UNCHANGING_P (x); MEM_COPY_ATTRIBUTES (new, x); return new; } -- cgit v1.2.1