[MemorySSAUpdater] Mark Phi users of a node being moved as non-optimize
authorZhaoshi Zheng <zhaoshiz@coduaurora.org>
Mon, 9 Apr 2018 20:55:37 +0000 (20:55 +0000)
committerZhaoshi Zheng <zhaoshiz@coduaurora.org>
Mon, 9 Apr 2018 20:55:37 +0000 (20:55 +0000)
commit43af17be4122a9254d3262f77c041c1c7dbd491a
tree3cc82f40a70f29d9fffef18b7382d72c45dfb7ae
parent6183065b974d8a53e5665246b9f981b8eb2ca591
[MemorySSAUpdater] Mark Phi users of a node being moved as non-optimize

Fix PR36484, as suggested:

<quote>
during moves, mark the direct users of the erased things that were phis as "not to be optimized"
<quote>

llvm-svn: 329621
llvm/include/llvm/Analysis/MemorySSAUpdater.h
llvm/lib/Analysis/MemorySSAUpdater.cpp
llvm/test/Transforms/GVNHoist/non-trivial-phi.ll [new file with mode: 0644]