4 ms·
Those optimizations are happening on LLVM's end (though the higher-level language will have to expose sufficiently transparent abstractions to make these optimi
by kibwen 7y ago
Those optimizations are happening on LLVM's end (though the higher-level language will have to expose sufficiently transparent abstractions to make these optimizations possible). I'd love to read a book on the optimization techniques that are implemented in LLVM/GCC to make transformations like this possible.
- incadenza 7y agoGotcha. Thanks. So presumably Clang would have done the same for C?
- danieldk 7y agoEasy to check, thanks to godbolt: https://godbolt.org/z/SopXnf https://godbolt.org/z/SopXnf
- steveklabnik 7y agoYes, and it's mentioned in the post that the C code was also brought into parity.
- incadenza 7y agoYeah I saw that, but just wasn’t sure how using intrinsics played a role.