Code reordering