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: [patch] tree-phinodes.c: Make make_phi_node static.



On Sun, 7 Nov 2004, Kazu Hirata wrote:



I was actually thinking about addressing this issue. The main difficulty is that people want to copy a chain of PHI nodes while doing different things.

Yes. Our copying/moving of phi nodes is not quite easy to work with right now.


For example, there is also no sane way to move phi nodes between blocks when you redirect an edge (see the mess in perfect_nestify that does this), and know what the result will be (IE that the phi nodes need to simply move from one block to another).

By sane i mean "doesn't require creating brand new phi nodes and updating all the immediate uses of the phi node for a new name".
I specifically want to avoid all the churn involved, otherwise i'd just create all new phis with exactly the correct arguments, and replace all the immediate uses of the old phi with the new phis.
:)


--Dan


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