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: [tree-ssa] Supefluous phi removal


In message <20040106192642.GB17687@redhat.com>, Richard Henderson writes:
 >On Mon, Jan 05, 2004 at 06:39:19PM -0700, law@redhat.com wrote:
 >> On a high level, don't you have to verify that you don't have dependencies
 >> between PHI nodes before copy propagating values like this?
 >
 >Absolutely.
 >
 >We have code to solve this problem in the unssa pass already.  It
 >just needs to get reused here.
Actually, I don't think that's necessary.  The serialization issues I
think are a result of turning PHIs into copies.

Zdenek's code never does that.  If we can not fully propagate the RHS of
the PHI into all uses of the LHS of the PHI, then we simply leave the PHI
alone.

Jeff



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