On Tue, Jun 3, 2025 at 11:36 PM Richard Sandiford
wrote:
>
> "H.J. Lu" writes:
> > On Tue, Jun 3, 2025 at 6:06 AM H.J. Lu wrote:
> >> Always add REG_CALL_DECL note for CALL so that get_call_fndecl works
> >> without -fipa-ra.
> >>
> >> PR other/120494
> >> * calls.cc (expand_call): Always add RE
"H.J. Lu" writes:
> On Tue, Jun 3, 2025 at 6:06 AM H.J. Lu wrote:
>> Always add REG_CALL_DECL note for CALL so that get_call_fndecl works
>> without -fipa-ra.
>>
>> PR other/120494
>> * calls.cc (expand_call): Always add REG_CALL_DECL note.
>> (emit_library_call_value_1): Likewise.
>>
>> Thanks.
On Tue, Jun 3, 2025 at 6:06 AM H.J. Lu wrote:
>
> On Mon, Jun 2, 2025 at 4:45 PM Richard Sandiford
> wrote:
> >
> > "H.J. Lu" writes:
> > > On Mon, Jun 2, 2025 at 4:07 PM Richard Sandiford
> > > wrote:
> > >>
> > >> "H.J. Lu" writes:
> > >> > Since not all CALL instructions in RTL passes have
}
> > }
> >
> > If get_call_fndecl works without a REG_CALL_DECL note, I can use it
> > instead of writing my own.
>
> I think we should consider removing the flag_ipa_ra guards around
> the code that adds REG_CALL_DECLs.
&g