Hello,
forgive me when I can't be that precise. I just pasted some test code to Godbolt and compared the assembly output between GCC 12.2 and Clang 16.0.0 and the assembly code of Clang was about 3 times larger and I guess, that this code is less optimized.
Hello, forgive me when I can't be that precise. I just pasted some test code to Godbolt and compared the assembly output between GCC 12.2 and Clang 16.0.0 and the assembly code of Clang was about 3 times larger and I guess, that this code is less optimized.
Here's the code:
The assembly output of x86_64 GCC 12.2 with
-O3 -std=c++20
:The assembly output of x86_64 Clang 16.0.0 with
-O3 -std=c++20
: