mem2reg pass