This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
new allocator df.c: forgotten apply_change_group
- To: gcc-patches at gcc dot gnu dot org
- Subject: new allocator df.c: forgotten apply_change_group
- From: Denis Chertykov <denisc at overta dot ru>
- Date: Sun, 18 Feb 2001 22:08:03 +0300
- Cc: <dberlin at redhat dot com>, <matzmich at cs dot tu-berlin dot de>, denisc at overta dot ru
Sun Feb 18 21:52:50 2001 Denis Chertykov <denisc@overta.ru>
* df.c (df_refs_reg_replace): Call to apply_change_group added.
(df_insn_mem_replace): Likewise.
(df_ref_reg_replace): Don't group changes.
Index: df.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/Attic/df.c,v
retrieving revision 1.1.2.3
diff -c -3 -p -r1.1.2.3 df.c
*** df.c 2001/02/06 22:39:51 1.1.2.3
--- df.c 2001/02/18 19:02:31
***************
*** 1,5 ****
/* Dataflow support routines.
! Copyright (C) 1999, 2000 Free Software Foundation, Inc.
Contributed by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz,
mhayes@redhat.com)
--- 1,5 ----
/* Dataflow support routines.
! Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
Contributed by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz,
mhayes@redhat.com)
*************** df_insn_mem_replace (df, bb, insn, mem,
*** 2587,2594 ****
/* Seach and replace all matching mems within insn. */
for_each_rtx (&insn, df_rtx_mem_replace, &args);
!
! if (args.modified)
df_insn_modify (df, bb, insn);
/* ???? FIXME. We may have a new def or one or more new uses of REG
--- 2587,2594 ----
/* Seach and replace all matching mems within insn. */
for_each_rtx (&insn, df_rtx_mem_replace, &args);
!
! if (args.modified && apply_change_group ())
df_insn_modify (df, bb, insn);
/* ???? FIXME. We may have a new def or one or more new uses of REG
*************** df_refs_reg_replace (df, blocks, chain,
*** 2664,2669 ****
--- 2664,2670 ----
{
args.insn = insn;
for_each_rtx (®_NOTES (insn), df_rtx_reg_replace, &args);
+ apply_change_group ();
}
}
else
*************** df_ref_reg_replace (df, ref, oldreg, new
*** 2712,2718 ****
if (oldreg && oldreg != DF_REF_REG (ref))
abort ();
! if (! validate_change (DF_REF_INSN (ref), DF_REF_LOC (ref), newreg, 1))
return 0;
df_insn_modify (df, DF_REF_BB (ref), DF_REF_INSN (ref));
--- 2713,2719 ----
if (oldreg && oldreg != DF_REF_REG (ref))
abort ();
! if (! validate_change (DF_REF_INSN (ref), DF_REF_LOC (ref), newreg, 0))
return 0;
df_insn_modify (df, DF_REF_BB (ref), DF_REF_INSN (ref));