Remove gimple_static_chain test disabling modref in ref_maybe_used_in_call_p

2021-11-19 Thread Jan Hubicka via Gcc-patches
Hi, this patch removes test for function not having call chain guarding modref use in ref_maybe_used_by_call_p_1. It never made sense since modref treats call chain accesses explicitly. It was however copied from earlier check for ECF_CONST (which seems dubious too, but I would like to discuss it

Re: Remove gimple_static_chain test disabling modref in ref_maybe_used_in_call_p

2021-11-19 Thread Richard Biener via Gcc-patches
On Fri, 19 Nov 2021, Jan Hubicka wrote: > Hi, > this patch removes test for function not having call chain guarding > modref use in ref_maybe_used_by_call_p_1. It never made sense since > modref treats call chain accesses explicitly. It was however copied from > earlier check for ECF_CONST (which