On Mon, Nov 25, 2013 at 09:52:47PM +0000, Richard Sandiford wrote: > But my point is that at the moment we always have trees for the ranges > we want to record, so it seems simplest just to store those in the > structure. I was thinking of something like the attached (only just > started testing, no changelog yet).
You have the tree at VRP time, that doesn't necessarily mean the tree is directly in the IL somewhere (with the right type). So, if you have very large function, you can have tons of constants there that aren't cached nor anywhere in the IL directly, so ggc_collect could normally throw them away, but if they are referenced from the SSA_NAME_RANGE_INFO, they can't be. Jakub