Hi,
Here is a preliminary result for fold_buildN from my personal tree. I
compiled cc1-i files with ./cc1 -quiet -O2 -fomit-frame-pointer
-fmem-report -o /dev/null. I used --enable-gather-detailed-mem-stats
to see how many nodes and bytes we are allocating for trees. (Thanks
Honza!) I then summed up the memory usage of trees.
original patched diff%
#nodes 24,234,589 23,577,245 -2.712%
#bytes 1,228,797,315 1,205,528,427 -1.893%
As far as compile time, I consistently see improvements of 0.1% or a
bit more.