https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90090
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Apr 16 08:24:47 2019 New Revision: 270379 URL: https://gcc.gnu.org/viewcvs?rev=270379&root=gcc&view=rev Log: PR tree-optimization/90090 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can throw internally. (is_division_by_square): Likewise. Formatting fix. * g++.dg/opt/pr90090.C: New test. Added: trunk/gcc/testsuite/g++.dg/opt/pr90090.C Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-math-opts.c