[Bug tree-optimization/64728] [5 Regression] internal compiler error: SSA corruption
rguenther at suse dot de
gcc-bugzilla@gcc.gnu.org
Thu Jan 22 13:11:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64728
--- Comment #7 from rguenther at suse dot de <rguenther at suse dot de> ---
On Thu, 22 Jan 2015, jakub at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64728
>
> --- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> (In reply to Richard Biener from comment #5)
> > Index: tree-ssa-coalesce.c
> > ===================================================================
> > --- tree-ssa-coalesce.c (revision 219989)
> > +++ tree-ssa-coalesce.c (working copy)
> > @@ -1213,8 +1215,11 @@ coalesce_partitions (var_map map, ssa_co
> > gsi_next (&gsi))
> > {
> > gphi *phi = gsi.phi ();
> > - tree res = PHI_RESULT (phi);
> > tree arg = PHI_ARG_DEF (phi, e->dest_idx);
> > + if (SSA_NAME_IS_DEFAULT_DEF (arg))
> > + continue;
> > +
> > + tree res = PHI_RESULT (phi);
> > int v1 = SSA_NAME_VERSION (res);
> > int v2 = SSA_NAME_VERSION (arg);
> >
> >
> > fixes it for me.
>
> Is that right even when SSA_NAME_VAR is a PARM_DECL?
No, of course not.
>
>
More information about the Gcc-bugs
mailing list