[LoopRotate + MemorySSA] Keep an <instruction-cloned instruction> map.

Authored by asbirlea on Jul 10 2019, 10:36 AM.


[LoopRotate + MemorySSA] Keep an <instruction-cloned instruction> map.

The map kept in loop rotate is used for instruction remapping, in order
to simplify the clones of instructions. Thus, if an instruction can be
simplified, its simplified value is placed in the map, even when the
clone is added to the IR. MemorySSA in contrast needs to know about that
clone, so it can add an access for it.
To resolve this: keep a different map for MemorySSA.

Reviewers: george.burgess.iv

Subscribers: jlebar, Prazek, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D63680

llvm-svn: 365672