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: Simple recompute_reg_usage cleanup



  In message <14407.14547.794346.311149@ongaonga.elec.canterbury.ac.nz>you writ
e:
  > FYI, I have been experimenting with a new field for each basic block
  > which records the innermost loop that the block is part of.  The loop
  > depth can then be derived using bb->loop->depth.
  > 
  > I have been trying to use this with the current loop optimiser but am
  > having trouble with insns that are not included in any basic block.
Are these real insns or notes that are not included in a basic block?

Presumably this is happening because loop relies on just creating new insns
wherever it wants -- ie it doesn't try to readjust the cfg related info.

It might be worth looking into how hard it would be to revamp loop to use
the edge insertion framework provided by flow.  

The patch itself seems fine to me.

jeff


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