Re: [PATCH] Fix stmt folding in the inliner (PR tree-optimization/88444)

2018-12-14 Thread Richard Biener
On Thu, 13 Dec 2018, Jeff Law wrote: > On 12/13/18 3:59 PM, Jakub Jelinek wrote: > > Hi! > > > > The inliner doesn't want to fold statements immediately, but records them > > and then fold_marked_statements is meant to fold them when inlining is done. > > > > On the following testcase it doesn't

Re: [PATCH] Fix stmt folding in the inliner (PR tree-optimization/88444)

2018-12-13 Thread Jeff Law
On 12/13/18 3:59 PM, Jakub Jelinek wrote: > Hi! > > The inliner doesn't want to fold statements immediately, but records them > and then fold_marked_statements is meant to fold them when inlining is done. > > On the following testcase it doesn't fold some of them though. > The problem is that it

[PATCH] Fix stmt folding in the inliner (PR tree-optimization/88444)

2018-12-13 Thread Jakub Jelinek
Hi! The inliner doesn't want to fold statements immediately, but records them and then fold_marked_statements is meant to fold them when inlining is done. On the following testcase it doesn't fold some of them though. The problem is that it wants to scan only newly added basic blocks (i.e. those