Re: [PATCH] [PR 81245] Fix tree-if-conv calling of update_stmt after fold_stmt

2017-06-30 Thread Andrew Pinski
On Fri, Jun 30, 2017 at 1:20 AM, Richard Biener wrote: > On Thu, Jun 29, 2017 at 10:12 PM, Andrew Pinski wrote: >> Hi, >> As described in the bug, tree-if-conv is calling update_stmt on an >> old stmt which might have been removed from the IR already >> (transforming of an assignment to a call

Re: [PATCH] [PR 81245] Fix tree-if-conv calling of update_stmt after fold_stmt

2017-06-30 Thread Richard Biener
On Thu, Jun 29, 2017 at 10:12 PM, Andrew Pinski wrote: > Hi, > As described in the bug, tree-if-conv is calling update_stmt on an > old stmt which might have been removed from the IR already > (transforming of an assignment to a call in this case). This fixes > the problem by calling update_stm

[PATCH] [PR 81245] Fix tree-if-conv calling of update_stmt after fold_stmt

2017-06-29 Thread Andrew Pinski
Hi, As described in the bug, tree-if-conv is calling update_stmt on an old stmt which might have been removed from the IR already (transforming of an assignment to a call in this case). This fixes the problem by calling update_stmt on the new statement that fold_stmt might have created. OK? Bo