Cross jumping/tail merging

Code size:   decreased or the same
Performance: worse or the same
Done by:     developer or compiler

Cross jumping or tail merging is an optimization technique used by compilers and humans. This approach is very easy to understand; first detect identical code sequences that can be shared, and then modify the program flow to work the same with the only one unique instance of this sequence.

Continue reading