Most people think performance = instruction count.
Not true.
Same instructions.
Same code.
GCC is ~25% faster than Clang here.
Reason?
AGU pressure + scheduling.
Compilers don’t just generate code
they decide how the CPU gets fed.
godbolt.org/z/E4havxWcW
#clang #gcc #llvm

3 Likes
1
3
29