Hi,

On Tue, Nov 03 2026, Andrew MacLeod wrote:
> There is code in ipa-prop which checks for a pointer range, and then looks to 
> see if there is points to info, eiother invariant to or away,.  If ti si 
> there, it clears it in one case and proceeds, and bails in the other.    This 
> provides a helper class which simply clears the fields if it is present and 
> fails the is_gimple_ip_invariant test.   This simplifies the client code, and 
> in the latter case still allows the range itself to be propagated rather than 
> bailing.  
>
> Bootstraps on x86_64-pc-linux-gnu with no regressions.  OK?
>
> Andrew
>
>
> Rather than looking for and clearing points to information that is
> gimple_ip_invariant, introduce a routine and call it.
>
>       * ipa-prop.cc (ipa_set_jfunc_vr): Call enw routine.
>       (ipa_record_return_value_range_1): Likewise.
>       * tree-ssanames.cc (clear_function_local_points_to): New.
>       * tree-ssanames.h (clear_function_local_points_to)): New prototype.

OK, thanks.

Martin

Reply via email to