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]

Re: [trunk] patch to clean up simulation of insns in df.


I renamed df_simulate_artificial_refs_at_end to df_simulate_artificial_refs_at_end_backwards and renamed df_simulate_artificial_refs_at_top to df_simulate_artificial_refs_at_top_backwards.

The idea is obviously okay. However I'd rather avoid the _backwards suffix since right now we only support backwards scanning. I mean, if the suffix had been there before, I'd have removed it together with df_simulate_one_insn_forwards. The comment you added tells that df_simulate_artificial_refs_at_* is okay only for backwards scanning.


In practice, this would reduce the patch to these hunks only:

   (df_simulate_artificial_refs_at_top):
   Reversed scanning of defs and uses.
   (df_simulate_one_insn_forwards): Removed.

which would have been a tad simpler to review too.

Paolo


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