It's because the compiler doesn't understand assembly code. It has no knowledge of what it actually does, and as a result, just treats it as a
black box.

But this is not set in stone. If I teach a compiler how to optimize intrinsics, can't I teach him to understand and optimize a (maybe small) subset of assembler, too? This must happen in the backend anyway, since intrinsics are platform-dependent, no?

Reply via email to