https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70457
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I've missed the pass_optimize_widening_mul::execute in your patch, that is also another spot where you'd want to call it. But the sincos hunks should be safe as is.