Re: [PATCH] tailcall: Fix up process_assignment [PR94001]

2020-03-03 Thread Richard Biener
On Wed, 4 Mar 2020, Jakub Jelinek wrote: > Hi! > > When a function returns void or the return value is ignored, ass_var > is NULL_TREE. The tail recursion handling generally assumes DCE has been > performed and so doesn't expect to encounter useless assignments after the > call and expects them

[PATCH] tailcall: Fix up process_assignment [PR94001]

2020-03-03 Thread Jakub Jelinek
Hi! When a function returns void or the return value is ignored, ass_var is NULL_TREE. The tail recursion handling generally assumes DCE has been performed and so doesn't expect to encounter useless assignments after the call and expects them to be part of the return value adjustment that need to