This is the mail archive of the egcs-patches@egcs.cygnus.com mailing list for the EGCS project.


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

Re: Update for cprop patch


Jeff Law wrote:
>   In message <Pine.SOL.4.10.9906012038300.24328-100000@jennifer.informatik.rwth
> -aachen.de>you write:
>   > This is an updated version of the cprop enhancement patch I submitted a
>   > few weeks ago.  Changes:
>   >  - this one applies cleanly to the current CVS sources
>   >  - In find_avail_set, avoid infinite loops when we run into a cycle (this
>   >    can happen e.g. if we have a no-op set in the hash table).
> By a no-op set I assume you mean something like
> (set (reg X) (reg X))?

Yes.  I encountered one of those when building glibc.

> If so, one could argue we shouldn't ever put that into the set table to
> start with.

Sounds reasonable, but I'm not sure whether it's enough to prevent cycles.

> I think you want to move the call to oprs_not_set_p from cprop_insn into the
> loop in find_avail_set since you want the loop to stop if it encounters a
> register in the copy chain that is set earlier in the block.

Can that ever happen?  Doesn't find_avail_set look for sets that are
available at the start of the basic block the current insn is in (in which
case the reg can't be set between the start of the block and the current
insn)?

Bernd


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