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: [patch] Move dominance info to struct control_flow_graph


On 7/26/07, Zdenek Dvorak <rakdver@kam.mff.cuni.cz> wrote:
Hello,

this patch moves two global variables related to the dominance
information (dom_computed, describing whether dominators were
computed; and n_bbs_in_dom_tree, containing number of basic blocks
in the dominance tree) to struct control_flow_graph.  This seems to be
the appropriate place, since all the dominance information is stored in
cfg.  This change allows to have dominance information computed for
several functions at once (which might be useful for ipa passes).

Bootstrapped & regtested on i686.

THis is ok.


Thanks,
Richard.

Zdenek

        * dominance.c (dom_computed, n_bbs_in_dom_tree): Removed.
        * function.h (dom_computed, n_bbs_in_dom_tree): New macros.
        * basic-block.h (struct control_flow_graph): Added x_dom_computed
        and x_n_bbs_in_dom_tree fields.


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