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, fortran] PR 40628, front-end optimization pass


Hi Thomas,

Thomas Koenig wrote:
finally, here's the first attempt at a front-end optimization pass.
Right now, it fixes PR 40626 and optimizes comparisons between variables
(which only really is relevant for character comparisons).  Many more
things could (and should) be added over time.

thinking about this, I'm not really convinced that we want "front-end optimization passes". At least for heavier optimization, at least conceptually the middle-end should be responsible. And for smaller ones that are Fortran-specific, we already have the "simplify" code-path. So what do you think are appropriate use-cases for your new optimization pass?


On the other hand, I like the idea of a general high-level pass-framework. I think that this could help in implementing F2003 features (and co), because I'm not sure the current handling during resolution is the best and cleanest (at least not for all constructs). I would have liked to add some construct lowering as seperate passes in the past, so that it does not interfere with real resolution.

What do you (and others) think about introducing your patch as a general pass-framework (and probably not calling it "optimization"), which could then both handle construct implementations as well as certain optimization passes (if it seems reasonable to implement them that way)?

Yours,
Daniel

--
http://www.pro-vegan.info/
--
Done:  Arc-Bar-Cav-Ran-Rog-Sam-Tou-Val-Wiz
To go: Hea-Kni-Mon-Pri


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