Re: REG_CALL_DECL notes

2016-01-12 Thread Tom de Vries
On 12/01/16 17:10, Jakub Jelinek wrote: Hi! What is the reason for these notes? From https://gcc.gnu.org/ml/gcc-patches/2013-03/msg01316.html: ... Using the reg-note we are able to easily link call_insns to their corresponding declaration, even after the calls may have been split into an ins

REG_CALL_DECL notes

2016-01-12 Thread Jakub Jelinek
Hi! What is the reason for these notes? I mean, for indirect calls usually the argument is NULL, so at least for that case I'd say (expr_list:REG_CALL_DECL (nil) is just a waste of RTL memory, because nothing will really make use of it: static tree get_call_fndecl (rtx_insn *insn) { rtx note, d