]> granicus.if.org Git - llvm/commit
[MemorySSA] Add additional verification for phis.
authorAlina Sbirlea <asbirlea@google.com>
Wed, 31 Jul 2019 17:41:04 +0000 (17:41 +0000)
committerAlina Sbirlea <asbirlea@google.com>
Wed, 31 Jul 2019 17:41:04 +0000 (17:41 +0000)
commitd44a8316ba04a745aef0488e0343c8ddc9fda8e6
tree6134de60bc2062624dd8610e33bed1987f44e882
parent5d2f373bc6de6652201888ef0099c34a0bf2bb4a
[MemorySSA] Add additional verification for phis.

Summary:
Verify that the incoming defs into phis are the last defs from the
respective incoming blocks.
When moving blocks, insertDef must RenameUses. Adding this verification
makes GVNHoist tests fail that uncovered this issue.

Reviewers: george.burgess.iv

Subscribers: jlebar, Prazek, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367451 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/MemorySSA.h
lib/Analysis/MemorySSA.cpp
lib/Analysis/MemorySSAUpdater.cpp
test/Analysis/MemorySSA/unreachable.ll [new file with mode: 0644]