This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Decompose gimplify_expr
Hello,
> > I'd also like to hear from our GIMPLE experts. I'm betting that you've
> > already been discussing your plans for gimplification changes with the
> > right people, so I'm not particularly concerned, but it would be good to
> > make sure that we're not trying to move in different directions at the
> > same time.
> >
> I'm a bit concerned about some of the proposals in Zdenek's
> paper. In particular the idea of doing scalar cleanups while
> gimplifying. The advantages over straightforward gimplification
> would have to be very noticeable.
>
> We already have some modules in the compiler that try to do
> diverse things at the same time and they are a maintenance
> burden. The code is typically twisty and full of special case
> handling. I'm a big supporter of small modules with clean
> interfaces and few responsibilities.
we are very far from this now; my main goal at the moment is to
clean up the gimplification so that it is possible to experiment
with various improvements to it.
In any case, I don't intend to implement any complicated optimizations.
I definitely will avoid any "special case handling";
if the optimization is too complicated, it is hardly worth doing
at the expansion time. I will be considering only simple optimizations
like unreachable code removal and constant propagation that have
a good chance to be very useful and save significant amount of memory
and compile time (especially on code that uses macros a lot).
Zdenek
> That said, I am ready to be convinced, if it can be implemented
> cleanly and the results are compelling. The branch will be a
> great opportunity for us to experiment with the approach.