https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103451
Aldy Hernandez <aldyh at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |aldyh at gcc dot gnu.org
--- Comment #6 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
> Yes, I'd try just removing the code first ...
>
> > >
> > > I also see
> > >
> > > bool
> > > fold_using_range::range_of_builtin_call (irange &r, gcall *call,
> > > fur_source &src)
> > > ...
> > > if (cfun->after_inlining)
> > > {
> > > r.set_zero (type);
> > >
> > > which might have similar problems (!cfun || ... looks quite reasonable
> > > there)
> >
> > This one came from the old vr-values.c code, so you may have better insight
> > here ;-)
>
> Well, yeah - but at that point it wasn't exposed as API to IPA passes.
> As said, !cfun || ... looks correct here (if in IPA context inlining
> hasn't completed!)
Heh heh. I wasn't blaming you. It was just a coy way of saying "I don't know"
:-).
I'll investigate by first removing the code.
Thanks for your analysis.