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]

Re: new allocator df.c: forgotten apply_change_group




Denis Chertykov <denisc@overta.ru> writes:

> 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.
> 

Not quite right.
What we *really* want is to group them when we call from
df_refs_reg_replace, but not if we just call df_ref_reg_replace.

That way, when we are trying to replace all instances of a register on
a given ref chain, we only do it if we can do all of them.
Otherwise, we might end up with only some of them getting changed,
which would be wrong.

However, if we are just trying to replace a given single instance,
it's not grouped.

Hmmm.
What's the best way to do this.

--Dan


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