https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121570
Mikael Morin <mikael at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikael at gcc dot gnu.org --- Comment #1 from Mikael Morin <mikael at gcc dot gnu.org> --- (In reply to Bastiaan Braams from comment #0) > I think that Andi Kleen of the gcc-bugs mailing list may add some comments > here. He identified that under the hood ieee_next_after invokes routines to > save the fpu state before the actual computation and to restore it > afterwards, and this is where the bulk of the time is spent. He comments > further that these invocations of _gfortran_ieee_procedure_{entry,exit} may > perhaps be optimized out of the loop. For reference the discussion was in the thread starting at: https://gcc.gnu.org/pipermail/gcc-bugs/2025-August/925833.html