Created attachment 24850
Affected C++ Source
It this case https://pastebin.com/rhpWvssR
g++ -O2 fib.cpp -o /tmp/fib;clang++ -O2 -fdiagnostics-color=always fib.cpp -o
/tmp/fib2;/tmp/fib;/tmp/fib2
GCC Execution time: 37.622s
Clag Execution time: 61.858s
With OMP and little bit change algo
GCC Execution time: ~23s
Clag Execution time: ~38s
GCC Version 10.2.0
LLVM 11.1.0 and 12.0.0 git branch
This also happens in more complex code. I simplified code for minimal
instructions.
fib.cpp
(914 bytes, text/x-c++src)