Re: [PR 91579] Avoid creating redundant PHI nodes in tail-call pass

2019-08-30 Thread Richard Biener
On Thu, Aug 29, 2019 at 3:56 PM Martin Jambor wrote: > > Hi, > > On Thu, Aug 29 2019, Richard Biener wrote: > > On Thu, Aug 29, 2019 at 11:04 AM Martin Jambor wrote: > >> > >> Hi, > >> > >> when turning a tail-recursive call into a loop, the tail-call pass > >> creates a phi node for each gimple_

Re: [PR 91579] Avoid creating redundant PHI nodes in tail-call pass

2019-08-29 Thread Martin Jambor
Hi, On Thu, Aug 29 2019, Richard Biener wrote: > On Thu, Aug 29, 2019 at 11:04 AM Martin Jambor wrote: >> >> Hi, >> >> when turning a tail-recursive call into a loop, the tail-call pass >> creates a phi node for each gimple_reg function parameter that has any >> use at all, even when the value pa

Re: [PR 91579] Avoid creating redundant PHI nodes in tail-call pass

2019-08-29 Thread Richard Biener
On Thu, Aug 29, 2019 at 11:04 AM Martin Jambor wrote: > > Hi, > > when turning a tail-recursive call into a loop, the tail-call pass > creates a phi node for each gimple_reg function parameter that has any > use at all, even when the value passed to the original call is the same > as the received

[PR 91579] Avoid creating redundant PHI nodes in tail-call pass

2019-08-29 Thread Martin Jambor
Hi, when turning a tail-recursive call into a loop, the tail-call pass creates a phi node for each gimple_reg function parameter that has any use at all, even when the value passed to the original call is the same as the received one, when it is the parameter's default definition. This results in