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: Midlevel RTL part 1


 In message <wvln0z6qrhu.fsf@prospero.cambridge.redhat.com>, Jason Merrill 
write
s:
 > > Yes. My patch already contain enum rtl_form that represent the form the
 > > RTL is done in.  Currently it is 3 stage - MID, lowering, LOW, but I plan
 > > more passes.  I do use relative comparisons to it to make adding more
 > > of levels easy.
 > 
 > Sounds good, but my question is, do we need to define levels at all?  I'm
 > not sure that lowering needs to be monotonic; optimization passes can be
 > useful multiple times in the compilation, why not lowering passes?
My gut tells me that we're going to find that we'll eventually want to
lower certain aspects of the IR at different times.   But I suspect once
we've lowered a certain set of constructs/concepts we won't need to do the
same lowering again.

Basically I don't really forsee a need to perform a specific lowering more
than once.  But hey, maybe things will chance once we start using multiple
level IRs and we see specific issues.

jeff


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