3 ms·
The generated code is not the same: https://godbolt.org/z/GkFGqe https://godbolt.org/z/GkFGqe
by wolf550e 8y ago
The generated code is not the same: https://godbolt.org/z/GkFGqe https://godbolt.org/z/GkFGqe
- vyodaiken 8y agoBut the purported massive difference of the video disappears on those versions too. So that's the big proof of the efficacy of UB driven "optimization" - one additional assembler instruction in the clang code, some movslq vs movl. Dramatic. A micro-benchmark that indicates zero.