> Hi,
> 
> On Mon Nov 16, 2026 at 10:33 AM CET, Jan Hubicka wrote:
> > Hi,
> > this patch extends ipa-cp to prpagate nvariant base addresses when
> > offset is unknown. It is last bigger piece needed for cppcheck. Large
> > patch is quite mechanical. We basically need to add
> > IPA_JF_CONST_UNKNOWN_OFFSET (or alternatively add flag to the exisitng
> > const function, but we would need to check the flag in basically all
> > uses), extend agg files and jump function by uknown offsets and do the
> > checking.
> >
> > Bootstrapped/regtested x86_64-linux.  Martin, I wonder if you have ideas
> > for improvmeents on this.
> >
> > Honza
> >
> > gcc/ChangeLog:
> >
> >     * ipa-prop.h (enum jump_func_type): Add IPA_JF_CONST_UNKNOWN_OFFSET.
> 
> I am of course not a reviewer, but can we please get an update to the
> comment at the top of ipa-prop.h, to keep the docs up to date and to
> possibly illustrate the use case a little better?  Thanks :)
Good point :)
Alos it is place to discuss why I ended up with
IPA_JF_CONST_UNKWNON_OFFSET instead of extra flag on IPA_JF_CONST.  I
think in future, we will want to store additional info on this jump
function, in partiuclar the value range and stride of the offset which I
did not implement for the first version of it.

I will update the patch.

Thanks,
Honza
> 
> Best regards,
> Josef

Reply via email to