[Bug middle-end/115832] Very slow compilation with `-fsanitize=undefined -O2` and std::sort

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 9 05:12:07 GMT 2024


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115832

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Mohammed Faisal from comment #2)
> I have also tested this with gcc 13.2.1 on a different machine and found a
> similar slowdown.
> Testing this with clang 14.0.6 gives only about a 2x slowdown as opposed to
> the 13.5x slowdown with gcc.

What is the relative difference in compiler speed between clang and GCC (rather
than between -O0 and -O2 -fsanitize=undefine)?


More information about the Gcc-bugs mailing list