Fix mem2reg to correctly handle allocas only used in a single block