A sophisticated compiler absolutely would use that shortcut. Interestingly, it would figure out the shortcut by translating to an intermediate language that is neither the original language nor assembly, in which the transformation is more obvious.
A sophisticated compiler absolutely would use that shortcut. Interestingly, it would figure out the shortcut by translating to an intermediate language that is neither the original language nor assembly, in which the transformation is more obvious.