add reg alloc(no completed yet).