This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Make PHI nodes reachable by GGC
- From: Richard Henderson <rth at redhat dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 28 Nov 2003 15:41:30 -0800
- Subject: Re: [tree-ssa] Make PHI nodes reachable by GGC
- References: <20031128225924.GQ1906@kam.mff.cuni.cz>
On Fri, Nov 28, 2003 at 11:59:24PM +0100, Jan Hubicka wrote:
> This still seems to be better than moving whole CFG into GGC memory, but
> I can implement that too if this is preferred.
I'd prefer the whole CFG be GCed.
> ann = bb_ann (bb);
> TREE_CHAIN (phi) = ann->phi_nodes;
> ann->phi_nodes = phi;
> + VARRAY_TREE (tree_phi_root, bb->index) = phi;
This just wastes space in the bb annotation. We might as well just
move the PHI out to the array entirely and be done with it.
r~