Re: [PATCH] Don't optimize successive divs if there is also a mod with the same last arg (PR tree-optimization/85726)

2018-12-06 Thread Richard Biener
On Thu, 6 Dec 2018, Jakub Jelinek wrote: > Hi! > > This is my proposal for fixing this PR, just a heuristics when optimizing > successive divides might not be a good idea (first testcase), and includes > Marc's testcases which showed cases where optimizing successive divides is a > good idea

[PATCH] Don't optimize successive divs if there is also a mod with the same last arg (PR tree-optimization/85726)

2018-12-05 Thread Jakub Jelinek
Hi! This is my proposal for fixing this PR, just a heuristics when optimizing successive divides might not be a good idea (first testcase), and includes Marc's testcases which showed cases where optimizing successive divides is a good idea even if the inner divide is not a single use.