This is the mail archive of the gcc@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: importing code in IR (GIMPLE and/or RTL)


Luchezar Belev wrote:
Won't it be possible the order of the optimizing passes not to be hardcoded,
but to be controlled by a config file or something.

This isn't practical for RTL optimization passes, for various reasons. The RTL is only a partial representation of a function. Much of the info is in various global variables which are only created or maintained in certain optimization passes. Some of the info is RTL annotatations that are only created or maintained in certain optimization passes. Most passes make assumptions that certain optimizations have or have not been performed yet. The result is that usually the location of an RTL pass is fairly limited. There have been some improvements in this area, trying to improve infrastructure so we can recalculate info when we need it, or maintain it until we use it, but this problem may never be completely fixed.


I can't speak for the new gimple optimization passes, but hopefully they are better designed, and have fewer ordering constraints.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



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