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: Use pass manager for RTL passes 3/4: move pass manager to passes.c



Why are you resetting required and provided properties on pass
structures?


The reason was to track which passes use trees and which use RTL and which have the CFG. Then, execute_todo can use print_rtl or print_rtl_with_bb depending on whether the CFG is present.

Strictly speaking, properties_required becomes something more like properties_before and properties_provided becomes something more like properties_after. It does not seem incorrect in the case properties_provided, while it is a bit counter-intuitive in the case of properties_required. ISTR that I did not add two more fields because of the burden of going through all the pass structures and adding fields to them (and I also did not like peppering the pass structures with initializations of fields that are for internal use).

What are you trying to do with properties_required, exactly?

Paolo


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