This patch enables the use of MemorySSA in the old and new loop pass managers.
Passes that currently use MemorySSA:
- EarlyCSE
 
Passes that use MemorySSA after this patch:
- EarlyCSE
 - LICM
 - SimpleLoopUnswitch
 
Loop passes that update MemorySSA (and do not use it yet, but could use it after this patch):
- LoopInstSimplify
 - LoopSimplifyCFG
 - LoopUnswitch
 - LoopRotate
 - LoopSimplify
 - LCSSA
 
Loop passes that do *not* update MemorySSA:
- IndVarSimplify
 - LoopDelete
 - LoopIdiom
 - LoopSink
 - LoopUnroll
 - LoopInterchange
 - LoopUnrollAndJam
 - LoopVectorize
 - LoopReroll
 - IRCE
 
I think you can just remove this for now.