move asm loop optimization into last phase