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: Unify gcse and cse exp{r,}_equiv_p functions


If the extra argument really bothers you, we could also just unify
all the validate, equal_values, and for_gcse arguments and turn them
into flags.

No, what bothers me is that there are already a lot of functions that are like "do some check and then recurse looking at the RTL code format". I don't see much convenience in unifying two of these functions, if the way you do it is simply to a flag that picks one of two checks.


But since you do not like the hook-based solution and you wrote the original patch, it is my duty to profile this alternative solution and post a proper patch. :-)

Paolo


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