2 ms·
Looks like clang does the optimization for -mno-strict-align, but gcc doesn't seem to support that fully yet: https://godbolt.org/z/xn8erKMTe https://godbolt.or
by camel-cdr 3y ago
Looks like clang does the optimization for -mno-strict-align, but gcc doesn't seem to support that fully yet: https://godbolt.org/z/xn8erKMTe https://godbolt.org/z/xn8erKMTe
Edit: Apparently gcc assumes by default, that unaligned loads aren't supported, but with -mtune=size it somehow enables it: https://godbolt.org/z/d9P19aMnn https://godbolt.org/z/d9P19aMnn
some discussion around that: https://gcc.gnu.org/bugzilla/show_bug.cgi?format=multiple&id=111502 https://gcc.gnu.org/bugzilla/show_bug.cgi?format=multiple&id...