This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RTL sharing versus fwprop
- From: Jan Hubicka <jh at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 24 Jun 2007 00:29:02 +0200
- Subject: RTL sharing versus fwprop
Hi,
fwprop is common source of invalid RTL sharring in between instructions as
detected by the verify_rtl_sharing which I am once again trying to get into
shape to be enabled by default.
(concerning status, ia-64 now works as only target I tested with
checking enabled and has one regression in testsuite. i686, x86-64 and
ppc fails, this patch seems to bring i686 to the bootstrapland, I am
running full testing now)
Bootstrapped/regtested i686-linux, OK?
Honza
* fwprop.c (try_fwprop_subst): Care RTL sharing when forward
propagating.
Index: fwprop.c
===================================================================
*** fwprop.c (revision 125972)
--- fwprop.c (working copy)
*************** try_fwprop_subst (struct df_ref *use, rt
*** 688,693 ****
--- 688,695 ----
if (validate_change (insn, loc, new, false))
{
+ *loc = copy_rtx (*loc);
+
num_changes++;
if (dump_file)
fprintf (dump_file, "Changed insn %d\n", INSN_UID (insn));