This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, PR 40570] Do not create cycles of inlined nodes when inlining functions called once
> No. IIRC, because of recursive inlining, the chain of nodes that
> create the cycle in the testace was approximately 10 nodes long (at
> least I remember that I had to allow for 20 recursions instead of 10
> to find out what was going on). Thus the new check cannot cover that.
>
> And, just to to be sure, I have just checked :-)
Well, functions that are already inline clones (i.e. have inlined_to
set) are not considered for inlining for being called once, so you
should always see inlined_to pointer NULL?
Otherwise it looks fine, thanks! Weird side case :)
Honza
>
> Thanks,
>
> Martin