Hardware already does insane amounts of optimization. The modern superscalar out of order processor basically does it&#x27;s own JIT from X86 into their own internal micro-ops. Reordering instructions on the go etc. That&#x27;s another 2-10x speed difference on modern computers.