Keep track of alias information and remove some dead code.