diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-10 21:42:04 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-10 21:42:04 +0000 |
commit | cdf37bc1730b86278260925fa74f3949ed84af1b (patch) | |
tree | 7b0c4d5780c7da1e20a8d73c2051cd1de97dda2e /gcc/gcse.c | |
parent | 4234c724716893c7560ade9a38b740077b074683 (diff) | |
download | gcc-cdf37bc1730b86278260925fa74f3949ed84af1b.tar.gz |
* cse.c (cse_process_notes): Copy the propagated value.
* local-alloc.c (update_equiv_regs): Copy the memory RTX to be used
in REG_EQUIV notes.
* gcse.c (try_replace_reg): Copy the replacement.
* i386.c (emit_i387_cw_initialization): Copy stored_mode
(assign_386_stack_local): Always return copied memory expression
* function.c (instantiate_virtual_regs_in_insn): Copy the operand
duplicates.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118665 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r-- | gcc/gcse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c index f1214952b24..0518e4c597a 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -2647,6 +2647,11 @@ try_replace_reg (rtx from, rtx to, rtx insn) int success = 0; rtx set = single_set (insn); + /* Usually we substitute easy stuff, so we won't copy everything. + We however need to take care to not duplicate non-trivial CONST + expressions. */ + to = copy_rtx (to); + validate_replace_src_group (from, to, insn); if (num_changes_pending () && apply_change_group ()) success = 1; |