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: pr14627


On Wednesday 13 April 2005 06:28, Jeffrey A Law wrote:
> This patch implements an const/copy unpropagation pass.

FYI this pass was discussed in a long conversation on IRC a couple
of days ago.  This came up because not only DOM, but also VRP can
cause this problem.  The fundamental problem appears to be that we
allow constants as PHI arguments.  When DOM was the only working
SSA pass, perhaps doing this made a lot of sense.  But now, we need
this kind of passes to undo the damage later on.  Perhaps it still
is easier to just allow only SSA names as PHI arguments, and look
at their SSA_NAME_VALUE if you want to know the value of the PHI
argument.  That would make your pass unnecessary.

Gr.
Steven



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