[PATCH] Handle degenerated PHI nodes for entry edge in expansion (PR rtl-optimization/47028)

Paolo Bonzini bonzini@gnu.org
Mon Jan 3 13:26:00 GMT 2011


On 01/01/2011 07:30 PM, Jakub Jelinek wrote:
> Hi!
>
> On the following testcase we end up with a degenerate PHI node for the entry
> edge, which results in the insns being inserted on that edge, which is
> wrong, because the insns depend on parameter setup.
> The following patch fixes it by inserting those after parm_birth_insn.
> Another alternative, mentioned by richi in the PR, would be to get rid of
> degenerate PHI nodes during cfg cleanups, haven't tried that yet.

Are you sure this cannot happen in other commit_one_edge_insertion callers?

Paolo



More information about the Gcc-patches mailing list