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: Question about simplify_cond_and_lookup_avail_expr


    Tree combiner is mentioned many times but I do not understand its role 
    clearly. What is it suppose to do?

The same as the RTL combiner, but on trees.  ;-)

Basically, the idea (oversimplified) is to try to find a pair of statements
where the output of the first is the input of the second and do a macro
substitution replacing LHS of the first inside the second with the RHS of the
first, then trying to simplify the resulting expression in the hope that
it'll remain GIMPLE.  If so, we've reduced by one the number of statements in
the function.

Of course, the same tricks with respect to "3->2 merging" done in RTL would
also apply here, though the making of PARALLELs would have no analog.


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