[MemorySSA] Don't optimize incomplete phis.
authorAlina Sbirlea <asbirlea@google.com>
Fri, 29 Mar 2019 21:16:31 +0000 (21:16 +0000)
committerAlina Sbirlea <asbirlea@google.com>
Fri, 29 Mar 2019 21:16:31 +0000 (21:16 +0000)
commite589067e618ffeaa59c3d1a6214ce536141a11d5
tree437d75ccf2d6f6a00922316c8c6ab079ea579cc0
parentba708619ad2399601da002b1b49ce60874cb6446
[MemorySSA] Don't optimize incomplete phis.

Summary:
MemoryPhis cannot be optimized out until they are complete.
Resolves PR41254.

Reviewers: george.burgess.iv

Subscribers: sanjoy, jlebar, Prazek, jdoerfert, llvm-commits

Tags: #llvm

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

llvm-svn: 357315
llvm/lib/Analysis/MemorySSAUpdater.cpp
llvm/test/Analysis/MemorySSA/pr41254.ll [new file with mode: 0644]