This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
copyprop_hardreg_forward_1 sharing fix
- From: Jan Hubicka <jh at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 20 Aug 2007 01:15:28 +0200
- Subject: copyprop_hardreg_forward_1 sharing fix
Hi,
I had this patch sitting in my tree for a while but forgot to submit it.
copyprop_hardreg_forward might introduce sharing by copying nontrivial
operands (memories etc.) it propagated into. This with the regrename
patch I sent at friday seems to be last two issues needed for clean run
on primary platforms with checker (I am stil waiting for PPC results)
Bootstrapped/regtested i686-linux, x86_64-linux, ia64-linux with the
checker and i686-linux without, OK?
* regrename.c(copyprop_hardreg_forward_1): Unshare when doing copyprop.
Index: regrename.c
===================================================================
--- regrename.c (revision 127624)
+++ regrename.c (working copy)
@@ -1744,7 +1736,7 @@ copyprop_hardreg_forward_1 (basic_block
recog_data.operand[i] = new;
for (j = 0; j < recog_data.n_dups; j++)
if (recog_data.dup_num[j] == i)
- validate_change (insn, recog_data.dup_loc[j], new, 1);
+ validate_unshare_change (insn, recog_data.dup_loc[j], new, 1);
any_replacements = true;
}