Re: [PATCH] Reassoc zero_one_operation fixes (PR tree-optimization/78726)

2016-12-09 Thread Richard Biener
On Thu, 8 Dec 2016, Jakub Jelinek wrote: > Hi! > > The following testcases show two bugs in zero_one_operation (used during > undistribute optimization) and functions it calls. > The first one (wrong-code) is fixed by the > + tree orig_def = *def; > and > - if (stmts_to_fix.length () > 0) > +

[PATCH] Reassoc zero_one_operation fixes (PR tree-optimization/78726)

2016-12-08 Thread Jakub Jelinek
Hi! The following testcases show two bugs in zero_one_operation (used during undistribute optimization) and functions it calls. The first one (wrong-code) is fixed by the + tree orig_def = *def; and - if (stmts_to_fix.length () > 0) + if (stmts_to_fix.length () > 0 || *def == orig_def) changes