[Bug c++/80372] non-optimal handling of copying a std::complex<double>

noone@turm-lahnstein.de gcc-bugzilla@gcc.gnu.org
Sun Apr 9 08:48:00 GMT 2017


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

--- Comment #3 from ead <noone@turm-lahnstein.de> ---
(In reply to Andrew Pinski from comment #2)
> What options are you using?  -O2 or -O3 ? -mcpu=native ?

It is compiled with -O3, but it is the same for -O2 or -Os. 

If compiled with -march=native, the result uses four vmovsd instead of four
movsd, which does not change much: the new version is still the same slow and
36byte large.


More information about the Gcc-bugs mailing list