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: [cxx-conversion] RFC - Helper types for building GIMPLE


On Wed, 13 Mar 2013, Diego Novillo wrote:

This patch adds an initial implementation for a new helper type for
generating GIMPLE statements.

I hope you'll forgive the naive newbie question: why is the gimplifier used so little outside of the gimplification pass? For instance, after a call to fold in a gimple pass, we test valid_gimple_rhs_p and give up if it returns false, instead of trying to gimplify whatever fold returned. The connection with your patch is that generic trees are easier to build than gimple statements, so for a long expression one could imagine building a tree and having a single gimplification call at the end (the time wasted should be quite limited).


(Note that I encourage the efforts to simplify the gimple interface, I am just taking the occasion to ask a vaguely related question)

--
Marc Glisse


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