On Wed, Mar 23, 2016 at 09:59:56AM +0100, Richard Biener wrote: > Note that always when I find bugs in extract_muldiv and try > to decipher what it does I think we need to rip that out, > replacing it with some simple patterns and leaving the rest > to passes like reassoc. It's simply a beast that proved to > be a can of worms...
That is true, but sadly any optimization removals from extract_muldiv proved to be huge cans of worms too (e.g. in constexpr handling or constant initializers). Jakub