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: [tree-ssa] Organization of tree-ssa optimization passes


In message <20031204013640.GA11381@redhat.com>, Richard Henderson writes:
 >The thing that I do not like about this is that it's all macro based.
 >I completely disbelieve that this is necessary.  Only the existing
 >poor structure of the current code leads you to believe that it is.
Can't argue with that.

 >I would be more inclined to accept a structure in which a pass is
 >described by one struct that contains all of implementation function,
 >dump info, gateing flags and so forth.  This structure would be 
 >private to tree-optimize.c/toplev.c or wherever all of this nonsesnse
 >winds up.
Yup.  Ideally we'd also have a set of flags which indicate which key
data structures are clobbered by the pass.  ie, if a pass mucks up the
dominator tree, immediate uses, etc, then I'd like to know that.


jeff



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