3 ms·
gcc and clang both perform this optimization for me at -O3.
by jrockway 6y ago
gcc and clang both perform this optimization for me at -O3.
- martincmartin 6y agoThanks. On godbolt, I see clang do it at -O3. But gcc still has a loop, where the body has add but no mul, although I don't fully understand the body. Where do you see it in gcc? https://godbolt.org/z/sP194Y https://godbolt.org/z/sP194Y