This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]