Re: [PATCH] Copy over REG_ARGS_SIZE notes in sel-sched (PR debug/51557)

2011-12-16 Thread Andrey Belevantsev
On 16.12.2011 11:53, Jakub Jelinek wrote: On Fri, Dec 16, 2011 at 09:47:52AM +0400, Andrey Belevantsev wrote: Thus, if an insn has any note that prevents it from being cloned, we need to fix the above place. (If an insn should not even be moved from its block, then CANT_MOVE should be set to 1

Re: [PATCH] Copy over REG_ARGS_SIZE notes in sel-sched (PR debug/51557)

2011-12-16 Thread Eric Botcazou
> REG_DEAD/REG_UNUSED notes are recomputed by df, I don't think > anything recomputes REG_EQUAL/REG_EQUIV. Correct, passes need to adjust the REG_EQUAL/REG_EQUIV notes if need be. -- Eric Botcazou

Re: [PATCH] Copy over REG_ARGS_SIZE notes in sel-sched (PR debug/51557)

2011-12-15 Thread Jakub Jelinek
On Fri, Dec 16, 2011 at 09:47:52AM +0400, Andrey Belevantsev wrote: > Thus, if an insn has any note that prevents it from being cloned, we > need to fix the above place. (If an insn should not even be moved > from its block, then CANT_MOVE should be set to 1 in the same > function.) Then create_c

Re: [PATCH] Copy over REG_ARGS_SIZE notes in sel-sched (PR debug/51557)

2011-12-15 Thread Andrey Belevantsev
On 16.12.2011 0:42, Jakub Jelinek wrote: On Thu, Dec 15, 2011 at 09:37:45AM -0800, Richard Henderson wrote: On 12/15/2011 09:32 AM, Jakub Jelinek wrote: PR debug/51557 * sel-sched-ir.c (create_copy_of_insn_rtx): Copy REG_ARGS_SIZE notes. * gcc.dg/pr51557.c: New

Re: [PATCH] Copy over REG_ARGS_SIZE notes in sel-sched (PR debug/51557)

2011-12-15 Thread Jakub Jelinek
On Thu, Dec 15, 2011 at 09:37:45AM -0800, Richard Henderson wrote: > On 12/15/2011 09:32 AM, Jakub Jelinek wrote: > > PR debug/51557 > > * sel-sched-ir.c (create_copy_of_insn_rtx): Copy REG_ARGS_SIZE > > notes. > > > > * gcc.dg/pr51557.c: New test. > > There are plenty of other no

Re: [PATCH] Copy over REG_ARGS_SIZE notes in sel-sched (PR debug/51557)

2011-12-15 Thread Richard Henderson
On 12/15/2011 09:32 AM, Jakub Jelinek wrote: > PR debug/51557 > * sel-sched-ir.c (create_copy_of_insn_rtx): Copy REG_ARGS_SIZE > notes. > > * gcc.dg/pr51557.c: New test. There are plenty of other notes that could as well need duplication. E.g. REG_INC, REG_FRAME_RELATED_EX