Fix a bug in codegenprep where it was losing track of values OptimizeMemoryInst