https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106967
--- Comment #16 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Aldy Hernandez <al...@gcc.gnu.org>: https://gcc.gnu.org/g:dc829c7613ddf562d1aecaf22eda965e87108ac8 commit r13-2761-gdc829c7613ddf562d1aecaf22eda965e87108ac8 Author: Aldy Hernandez <al...@redhat.com> Date: Wed Sep 21 11:18:48 2022 +0200 [PR106967] Set known NANs to undefined for flag_finite_math_only. Explicit NANs in the IL can be treated as undefined for flag_finite_math_only. This causes all the right things to happen wrt threading, folding, etc. It also saves us special casing throughout. PR tree-optimization/106967 gcc/ChangeLog: * value-range.cc (frange::set): Set known NANs to undefined for flag_finite_math_only.