]> granicus.if.org Git - llvm/commit
[MemorySSA] Check for unreachable blocks when getting last definition.
authorAlina Sbirlea <asbirlea@google.com>
Tue, 1 Oct 2019 19:09:50 +0000 (19:09 +0000)
committerAlina Sbirlea <asbirlea@google.com>
Tue, 1 Oct 2019 19:09:50 +0000 (19:09 +0000)
commite536ca663f9d3d9c9fc413f2f48e1801902c44ac
treed647bd344c752c1dd2477362014138f334861a56
parent51ef81581b2ed99156b546b5985ede5efba931ea
[MemorySSA] Check for unreachable blocks when getting last definition.

If a single predecessor is found, still check if the block is
unreachable. The test that found this had a self loop unreachable block.
Resolves PR43493.

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