[MemorySSA] Clean up single value phis.
authorAlina Sbirlea <asbirlea@google.com>
Mon, 31 Aug 2020 23:56:05 +0000 (16:56 -0700)
committerAlina Sbirlea <asbirlea@google.com>
Tue, 1 Sep 2020 02:26:08 +0000 (19:26 -0700)
commit63844c116a0acf8a75ebe4ed6f25fced3c655710
tree06ef4221db7e42e04b5e56bbdad225f6f158f92e
parent428b2ffad4a346a967a4a105356fbc0fa518e2cc
[MemorySSA] Clean up single value phis.

MemoryPhis with a single value are correct, but can lead to errors when
updating. Clean up single entry Phis newly added when cloning blocks.
Resolves PR46574.
llvm/lib/Analysis/MemorySSAUpdater.cpp
llvm/test/Analysis/MemorySSA/pr46574.ll [new file with mode: 0644]