On 12-05-16 05:41 , Richard Guenther wrote:

What's the reason for templating these functions?  They all take trees as
parameter!?

True. I don't recall what Lawrence had in mind, but I remember that by using templates here, you don't need to deal with the mess of distinguishing tree from const_tree, and having to force constness out with ugly casts.

Additionally, templates are producing slightly smaller code than the non-template variant (about 0.2% smaller). I'm not actually sure why this happens, but it's consistent across all binaries.


Diego.

Reply via email to